kern
diff 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 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/proc-asm.S Sun Aug 14 16:57:23 2011 +0300 1.3 @@ -0,0 +1,9 @@ 1.4 + .text 1.5 + /* switch_stack(uint32_t new_stack) 1.6 + * switches to the new stack and returns the old stack pointer 1.7 + */ 1.8 + .globl switch_stack 1.9 +switch_stack: 1.10 + movl %esp, %eax 1.11 + movl 4(%esp), %esp 1.12 + ret