next up previous contents index
Next: 10.5.9 paging_disable: disable page Up: (X86) Processor Identification and Previous: 10.5.7 i16_leave_pmode: leave protected

10.5.8 paging_enable: enable page translation

   

SYNOPSIS

#include <oskit/x86/paging.h>

void paging_enable(oskit_addr_t pdir);

DESCRIPTION

Loads the processor page directory using pdir and turns on paging.

The caller must already have created and initialized an appropriate initial page directory as described in Intel documentation. The OSKit provides convenient facilities that can be used to create x86 page directories and page tables; for more information, see Section 10.9.

This function assumes that pdir equivalently maps the physical memory that contains the currently executing code, the currently loaded GDT and IDT.



University of Utah Flux Research Group