kern

view src/proc-asm.S @ 56:0be4615594df

finally, runqueues, blocking, waking up, idle loop etc, all seem to work fine on a single user process... Next up: try forking another one :)
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 15 Aug 2011 06:17:58 +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