enable paging problem on 386

阎淼 yanmiaobest at gmail.com
Mon Jul 16 14:43:38 UTC 2007


Hi,
   I am running x86 RTEMS-4.6.5 on qemu, and I use fucntion
init_paging(), which is part of pc386 bsp, to enable paging,
but before and after the function call, the content of cr0 register is the same:

              printk("0x%x\n", i386_get_cr0() );
	      .........
	      .........

              init_paging();

              ..........
	      ..........

              printk("0x%x\n", i386_get_cr0() );

and the output is:

              0x50033
              0x50033

but cr0 PG bit should be 1, and when should I initialize paging? after
Malloc initialize ?



More information about the users mailing list