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

If you are new to OS Development, plan on spending some time here first before going into the other forums.

Moderator:Moderators

Post Reply
ATXcs1372
Posts:5
Joined:Sat Feb 12, 2011 4:22 am
Paging doesn't enable despite calling ..._enable(true);

Post by ATXcs1372 » Tue Mar 22, 2011 4:51 pm

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?

User avatar
Mike
Site Admin
Posts:465
Joined:Sat Oct 20, 2007 7:58 pm
Contact:

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

Post by Mike » Sun Mar 27, 2011 8:49 pm

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.
Lead Programmer for BrokenThorn Entertainment, Co.
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com

Post Reply