kern

view src/proc-asm.S @ 55:88a6c4e192f9

Fixed most important task switching bugs. Now it seems that I can switch in and out of user space reliably.
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 15 Aug 2011 04:03:39 +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