Page 1 of 1

Paging doesn't enable despite calling ..._enable(true);

Posted: Tue Mar 22, 2011 4:51 pm
by ATXcs1372
The subject basically describes it. For some reason, when I call pmmngr_is_paging(); in Demo 23 it returns false.

Is this because there is no pmmngr_alloc_block(); call in Demo 23? Or is it some other function I am simply missing?

Re: Paging doesn't enable despite calling ..._enable(true);

Posted: Sun Mar 27, 2011 8:49 pm
by Mike
Hello,

That might indicate a bug in the software and will be looked into with Chapter 24's release. pmmngr_is_paging determines if paging is enabled using the PG bit of CR0. Because of this, its not related to any PMM routines.

Please note pmmngr_paging_enable has very few cases where it can be useful (each case requiring specific setup prior to calling). It does not need to be called during initialization in the OS provided by the series due to paging already being enabled.