Created
November 2, 2009 03:59
-
-
Save ldunn/223924 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef MEMORY_WCZWHBJM | |
#define MEMORY_WCZWHBJM | |
typedef struct { | |
unsigned int present : 1; | |
unsigned int readwrite : 1; | |
unsigned int user : 1; | |
unsigned int writethrough : 1; | |
unsigned int cachedisable : 1; | |
unsigned int accessed : 1; | |
unsigned int dirty : 1; | |
unsigned int attributeindex : 1; | |
unsigned int global : 1; | |
unsigned int reserved : 3; | |
unsigned int address : 19; | |
} PageTableEntry; | |
typedef struct { | |
unsigned int present : 1; | |
unsigned int readwrite : 1; | |
unsigned int user : 1; | |
unsigned int writethrough : 1; | |
unsigned int cachedisable : 1; | |
unsigned int accessed : 1; | |
unsigned int available : 1; | |
unsigned int pagesize : 1; | |
unsigned int global : 1; | |
unsigned int reserved : 3; | |
unsigned int address : 19; | |
} PageDirEntry; | |
#define MALLOC_ALIGN 1 | |
#define kmalloc(n) kmalloc_int((n), 0) | |
void *kmalloc_int(unsigned int size, unsigned int flags); | |
void init_mm(); | |
unsigned int test_frame(unsigned int addr); | |
#endif /* end of include guard: MEMORY_WCZWHBJM */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment