#include "console.h"
#include "errorCodes.h"
#include "types.h"
Go to the source code of this file.
Data Structures | |
struct | __attribute__ |
struct | __attribute__ |
Defines | |
#define | CR0_PAGING_ENABLE (0x80000000) |
#define | PAGE_PRESENT (1) |
#define | PAGE_READ_WRITE (2) |
#define | PAGE_P3_ACCESS (4) |
#define | PAGE_WRITE_THROUGH (8) |
#define | PAGE_CACHE_DISABLE (16) |
#define | PAGE_ACCESSED (32) |
#define | PAGE_SIZE_4MB (128) |
#define | PAGE_DIRTY (64) |
#define | PAGE_SIZE (4096) |
#define | ALLOC_OFFSET (524288) |
#define | MULTI_PAGE_ENTRY (1) |
#define | TOP_OF_DMA_STACK (4*1024*1024) |
Typedefs | |
typedef void * | PhysicalAddress |
typedef void * | LinearAddress |
Functions | |
ErrorCode | pagerInit (void) |
ErrorCode | pagerGetPageSize (uint32 *page) |
ErrorCode | pagerGetNewPhysical (PhysicalAddress *addr) |
ErrorCode | pagerGetNewLinear (LinearAddress *addr) |
ErrorCode | pagerMapPhysicalToLinear (PhysicalAddress phys, LinearAddress lin) |
ErrorCode | pagerGetPhysical (LinearAddress lin, PhysicalAddress *addr) |
ErrorCode | pagerGetLinear (PhysicalAddress phys, LinearAddress *addr) |