From: H. Peter Anvin Date: Wed, 14 Nov 2007 05:51:27 +0000 (-0800) Subject: Fix boot sectors; cleanup_hardware must preserve registers X-Git-Tag: syslinux-3.53-pre4^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=37cb48730c060adb253da5bc7c5f74ea06211aaa;p=profile%2Fivi%2Fsyslinux.git Fix boot sectors; cleanup_hardware must preserve registers cleanup_hardware has registers live across it when called from the boot sector code; it must preserve all registers. --- diff --git a/cleanup.inc b/cleanup.inc index 45ef920..1025705 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