aboutsummaryrefslogtreecommitdiff
path: root/src/entryfuncs.S
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2010-11-25 08:52:50 -0500
committerKevin O'Connor <kevin@koconnor.net>2010-11-25 08:52:50 -0500
commit4057f9847e94147aaa9799b92ba4561506333a57 (patch)
tree240e28b8ffa057b5716c3378e7623d23870e7033 /src/entryfuncs.S
parente2623fc6bce2a332d58fa00b00787432102fb089 (diff)
downloadseabios-hppa-4057f9847e94147aaa9799b92ba4561506333a57.zip
seabios-hppa-4057f9847e94147aaa9799b92ba4561506333a57.tar.gz
seabios-hppa-4057f9847e94147aaa9799b92ba4561506333a57.tar.bz2
Don't pass return address to transition(32,16,16big) on stack.
It's difficult to have a uniform view of the stack when transition modes, so pass the return address in a register. As a result, the transition functions only access memory via the %cs selector now.
Diffstat (limited to 'src/entryfuncs.S')
-rw-r--r--src/entryfuncs.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entryfuncs.S b/src/entryfuncs.S
index 3c29b3f..afc5e61 100644
--- a/src/entryfuncs.S
+++ b/src/entryfuncs.S
@@ -156,7 +156,7 @@
xorw %ax, %ax
movw %ax, %ss
movl $ BUILD_STACK_ADDR , %esp
- pushl $ \cfunc
+ movl $ \cfunc , %edx
jmp transition32
.endm