kern
diff src/vm-asm.S @ 30:a2c6110bd24b
refactored the code a bit, and merged with the malloc implementation branch
author | John Tsiombikas <nuclear@siggraph.org> |
---|---|
date | Fri, 27 May 2011 22:09:10 +0300 |
parents | 5454cee245a3 |
children | 88a6c4e192f9 |
line diff
1.1 --- a/src/vm-asm.S Sat Apr 23 00:51:18 2011 +0300 1.2 +++ b/src/vm-asm.S Fri May 27 22:09:10 2011 +0300 1.3 @@ -1,6 +1,6 @@ 1.4 .text 1.5 /* enable_paging(void) 1.6 - * sets the cr0 bit 31 which enables page translation */ 1.7 + * sets bit 31 of cr0 which enables page translation */ 1.8 .globl enable_paging 1.9 enable_paging: 1.10 movl %cr0, %eax 1.11 @@ -9,7 +9,7 @@ 1.12 ret 1.13 1.14 /* disable_paging(void) 1.15 - * clears the cr0 bit 31 */ 1.16 + * clears bit 31 of cr0 which disables page translation */ 1.17 .globl disable_paging 1.18 disable_paging: 1.19 movl %cr0, %eax 1.20 @@ -17,6 +17,8 @@ 1.21 movl %eax, %cr0 1.22 ret 1.23 1.24 +/* get_paging_status(void) 1.25 + * returns 0 if paging is disabled or 1 if it's enabled */ 1.26 .globl get_paging_status 1.27 get_paging_status: 1.28 movl %cr0, %eax