kern

annotate src/proc-asm.S @ 54:4eaecb14fe31

bringing the task switching thing into shape with proper per-process kernel stacks and shit
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 14 Aug 2011 16:57:23 +0300
parents
children 437360696883
rev   line source
nuclear@54 1 .text
nuclear@54 2 /* switch_stack(uint32_t new_stack)
nuclear@54 3 * switches to the new stack and returns the old stack pointer
nuclear@54 4 */
nuclear@54 5 .globl switch_stack
nuclear@54 6 switch_stack:
nuclear@54 7 movl %esp, %eax
nuclear@54 8 movl 4(%esp), %esp
nuclear@54 9 ret