kern

diff src/vm-asm.S @ 26:387078ef5c0d

fixes here and there
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 09 Apr 2011 07:14:06 +0300
parents 5454cee245a3
children 88a6c4e192f9
line diff
     1.1 --- a/src/vm-asm.S	Wed Apr 06 07:42:44 2011 +0300
     1.2 +++ b/src/vm-asm.S	Sat Apr 09 07:14:06 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