kern
diff src/vm-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 | 387078ef5c0d |
children |
line diff
1.1 --- a/src/vm-asm.S Sun Aug 14 16:57:23 2011 +0300 1.2 +++ b/src/vm-asm.S Mon Aug 15 04:03:39 2011 +0300 1.3 @@ -34,6 +34,13 @@ 1.4 movl %eax, %cr3 1.5 ret 1.6 1.7 +/* get_pgdir_addr(void) 1.8 + * returns the physical address of the page table directory (cr3) */ 1.9 + .globl get_pgdir_addr 1.10 +get_pgdir_addr: 1.11 + movl %cr3, %eax 1.12 + ret 1.13 + 1.14 /* flush_tlb(void) 1.15 * invalidates the whole TLB. entries for pages marked as global 1.16 * are unaffected */