kern

view 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 source
1 .text
2 /* switch_stack(uint32_t new_stack)
3 * switches to the new stack and returns the old stack pointer
4 */
5 .globl switch_stack
6 switch_stack:
7 movl %esp, %eax
8 movl 4(%esp), %esp
9 ret