aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-09-04 16:38:21 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-09-04 16:38:21 -0700
commit96281dc8bf8189add880d8f2bedf104e6517d1f7 (patch)
tree8b0ca9d676b0d2f9789cbca2aa4cdcaf9c64ed91 /core
parent517edd4527b9b4bd33aa18c8c6edecf20a9a992f (diff)
downloadsyslinux.git-96281dc8bf8189add880d8f2bedf104e6517d1f7.tar.gz
syslinux.git-96281dc8bf8189add880d8f2bedf104e6517d1f7.tar.xz
syslinux.git-96281dc8bf8189add880d8f2bedf104e6517d1f7.zip
core: remove overzealous calls to cleanup_hardware
cleanup_hardware is not needed in core/runkernel.inc: cleanup_hardware is already invoked from replace_bootstrap. Furthermore, cleanup_hardware is defined to preserve all registers, so there is no need to push/pop ax around it. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core')
-rw-r--r--core/localboot.inc2
-rw-r--r--core/runkernel.inc2
2 files changed, 0 insertions, 4 deletions
diff --git a/core/localboot.inc b/core/localboot.inc
index 6709b3b4..03d5cfd9 100644
--- a/core/localboot.inc
+++ b/core/localboot.inc
@@ -31,9 +31,7 @@ local_boot:
mov gs,dx
mov si,localboot_msg
call writestr
- push ax
call cleanup_hardware
- pop ax
cmp ax,-1
je .int18
diff --git a/core/runkernel.inc b/core/runkernel.inc
index ac00342c..8bfc8b8d 100644
--- a/core/runkernel.inc
+++ b/core/runkernel.inc
@@ -461,8 +461,6 @@ run_linux_kernel:
; Set up segment registers and the Linux real-mode stack
; Note: ds == the real mode segment
;
- call cleanup_hardware
-
cli
mov ax,ds
mov ss,ax