diff options
| author | hpa <hpa> | 2002-06-07 05:04:28 +0000 |
|---|---|---|
| committer | hpa <hpa> | 2002-06-07 05:04:28 +0000 |
| commit | 5e5fa8df698bf56701eaa652866adca832503136 (patch) | |
| tree | b1291263a1e126fbebdfc9c7b3eb0bb5e07529e6 | |
| parent | 702f0b85d3a26cfaab412ec3663f9b0ca50c48b4 (diff) | |
| download | syslinux-5e5fa8df698bf56701eaa652866adca832503136.tar.gz | |
Remove some redundant move-via-register of segments
| -rw-r--r-- | bcopy32.inc | 3 | ||||
| -rw-r--r-- | isolinux.asm | 3 | ||||
| -rw-r--r-- | pxelinux.asm | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/bcopy32.inc b/bcopy32.inc index ed14aee8..d81f00b7 100644 --- a/bcopy32.inc +++ b/bcopy32.inc @@ -67,8 +67,7 @@ bcopy: push eax push ds push es mov [cs:SavedSSSP],sp - mov ax,ss - mov [cs:SavedSSSP+2],ax + mov [cs:SavedSSSP+2],ss cli call enable_a20 diff --git a/isolinux.asm b/isolinux.asm index 3373f596..9c529b58 100644 --- a/isolinux.asm +++ b/isolinux.asm @@ -227,8 +227,7 @@ bi_csum: dd 0xdeadbeef ; Checksum of boot file bi_reserved: times 10 dd 0xdeadbeef ; Reserved _start1: mov [cs:InitStack],sp ; Save initial stack pointer - mov ax,ss - mov [cs:InitStack+2],ax + mov [cs:InitStack+2],ss xor ax,ax mov ss,ax mov sp,_start ; Set up stack diff --git a/pxelinux.asm b/pxelinux.asm index 9615b45a..d6b9ed79 100644 --- a/pxelinux.asm +++ b/pxelinux.asm @@ -282,8 +282,7 @@ _start1: push ds mov [Stack],sp - mov ax,ss - mov [Stack+2],ax + mov [Stack+2],ss ; ; Initialize screen (if we're using one) ; |
