26 lines
329 B
C
26 lines
329 B
C
|
|
|
|
void mm_init();
|
|
|
|
|
|
|
|
typedef struct {
|
|
qword base;
|
|
qword limit;
|
|
dword attributes;
|
|
} __attribute__((packed)) memmap_entry;
|
|
|
|
|
|
typedef struct {
|
|
dword base;
|
|
dword length; //in pages
|
|
dword flags;
|
|
dword link;
|
|
} __attribute__ ((packed)) pageblock; //16 byte pageblock entry - 512 entries = 1 page
|
|
|
|
|
|
|
|
|
|
|
|
|