aboutsummaryrefslogtreecommitdiff
path: root/src/entryfuncs.S
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2014-10-21 03:19:55 -0400
committerKevin O'Connor <kevin@koconnor.net>2014-10-27 10:56:54 -0400
commit283ae1f07949c463cbba0b8cd20f703a8c1389b6 (patch)
tree9ee4f8f02feb3d51c8ca85f558e33ca6e4203f1a /src/entryfuncs.S
parentcf436225a6a7c9d4351f1c3639dea787d9d70f4f (diff)
downloadseabios-hppa-283ae1f07949c463cbba0b8cd20f703a8c1389b6.zip
seabios-hppa-283ae1f07949c463cbba0b8cd20f703a8c1389b6.tar.gz
seabios-hppa-283ae1f07949c463cbba0b8cd20f703a8c1389b6.tar.bz2
Don't clobber %ax on ENTRY_INTO32 macro
There's no need to clobber %ax in ENTRY_INTO32. Now that %eax isn't clobbered, use ENTRY_INTO32 in entry_csm. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/entryfuncs.S')
-rw-r--r--src/entryfuncs.S5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/entryfuncs.S b/src/entryfuncs.S
index 679b1fc..8438604 100644
--- a/src/entryfuncs.S
+++ b/src/entryfuncs.S
@@ -135,10 +135,9 @@
.endm
// Reset stack, transition to 32bit mode, and call a C function.
- // Clobbers %ax
.macro ENTRY_INTO32 cfunc
- xorw %ax, %ax
- movw %ax, %ss
+ xorw %dx, %dx
+ movw %dx, %ss
movl $ BUILD_STACK_ADDR , %esp
movl $ \cfunc , %edx
jmp transition32