Remove additional use of DX:AX
authorH. Peter Anvin <hpa@zytor.com>
Tue, 26 Feb 2008 00:55:44 +0000 (16:55 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 26 Feb 2008 00:55:44 +0000 (16:55 -0800)
Remove an additional use of DX:AX for file size

runkernel.inc

index 6ee6e52..1a25a91 100644 (file)
@@ -58,9 +58,6 @@ kernel_sane:  push ax
                push word real_mode_seg
                pop es
 
-               movzx eax,ax                    ; Fix this by using a 32-bit
-               shl edx,16                      ; register for the kernel size
-               or eax,edx
                mov [KernelSize],eax
                add eax,SECTOR_SIZE-1
                shr eax,SECTOR_SHIFT