From 4057f9847e94147aaa9799b92ba4561506333a57 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 25 Nov 2010 08:52:50 -0500 Subject: 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. --- src/entryfuncs.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/entryfuncs.S') 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 -- cgit v1.1