#include <oskit/x86/base_paging.h>pd_entry_t *pdir_find_pde(oskit_addr_t pdir_pa, oskit_addr_t la);
This primitive macro uses the appropriate bits in linear address la (bits 22-31) to look up a particular entry in the specified page directory. Note that this function takes the physical address of a page directory, but returns a kernel virtual address (i.e., an ordinary pointer to the selected page directory entry).
- pdir_pa
- Physical address of the page directory.
- la
- Linear address to be used to select a page directory entry.
Returns a pointer to the selected page directory entry.
- phystokv
- 10.6.2