summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-11-13 21:51:27 -0800
committerH. Peter Anvin <hpa@zytor.com>2007-11-13 21:51:27 -0800
commit37cb48730c060adb253da5bc7c5f74ea06211aaa (patch)
tree4e6d8ede382c0c78afd371c2f20ad1d9505842da
parentcb67f4df28b4395721bf7da2bfff984e16407cc8 (diff)
downloadsyslinux-37cb48730c060adb253da5bc7c5f74ea06211aaa.tar.gz
Fix boot sectors; cleanup_hardware must preserve registerssyslinux-3.53-pre4
cleanup_hardware has registers live across it when called from the boot sector code; it must preserve all registers.
-rw-r--r--cleanup.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/cleanup.inc b/cleanup.inc
index 45ef920c..10257051 100644
--- a/cleanup.inc
+++ b/cleanup.inc
@@ -24,7 +24,7 @@
; Can trash any registers.
;
cleanup_hardware:
-
+ pushad
;
; Linux wants the floppy motor shut off before starting the kernel,
; at least bootsect.S seems to imply so. If we don't load the floppy
@@ -50,4 +50,5 @@ cleanup_hardware:
.no_vmware:
%endif
+ popad
ret