nuclear@54: .text nuclear@54: /* switch_stack(uint32_t new_stack) nuclear@54: * switches to the new stack and returns the old stack pointer nuclear@54: */ nuclear@54: .globl switch_stack nuclear@54: switch_stack: nuclear@54: movl %esp, %eax nuclear@54: movl 4(%esp), %esp nuclear@54: ret