summaryrefslogtreecommitdiffstats
path: root/sys/i386/boot/netboot
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-11-11 14:27:12 +0000
committerbde <bde@FreeBSD.org>1996-11-11 14:27:12 +0000
commit18a931e5ef3524816605880762ca81652b90bbe2 (patch)
tree6f6c83411e1dcc2465f74c5dae34b1d1b4db2b7c /sys/i386/boot/netboot
parent40a4831b1fdf6aa7c474935c97f8960485eda2d5 (diff)
downloadFreeBSD-src-18a931e5ef3524816605880762ca81652b90bbe2.zip
FreeBSD-src-18a931e5ef3524816605880762ca81652b90bbe2.tar.gz
Preserve %esi and %edi for get_diskinfo(). See the logs for similar fixes
in bios.S. I only fixed the case that is known to be broken here. Should be in 2.2.
Diffstat (limited to 'sys/i386/boot/netboot')
-rw-r--r--sys/i386/boot/netboot/start2.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/i386/boot/netboot/start2.S b/sys/i386/boot/netboot/start2.S
index 00a37a3..6d0d113 100644
--- a/sys/i386/boot/netboot/start2.S
+++ b/sys/i386/boot/netboot/start2.S
@@ -340,6 +340,8 @@ _get_diskinfo:
mov %esp, %ebp
push %es
push %ebx
+ push %esi
+ push %edi
push %ecx
push %edx
@@ -392,6 +394,8 @@ ok:
pop %edx
pop %ecx
+ pop %edi
+ pop %esi
pop %ebx
pop %es
pop %ebp
OpenPOWER on IntegriCloud