mem: adjust MMIO addresses
This commit is contained in:
parent
1aaeeda22d
commit
b90946e1f8
5 changed files with 8 additions and 4 deletions
|
|
@ -17,9 +17,9 @@
|
|||
#define PACKED __attribute__((packed))
|
||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
|
||||
|
||||
#define KB 1024
|
||||
#define MB (1024 * KB)
|
||||
#define GB (1024 * MB)
|
||||
#define KB (1024ull)
|
||||
#define MB (KB * KB)
|
||||
#define GB (KB * MB)
|
||||
|
||||
void yield();
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
#define PAGE_XD (1 << 64)
|
||||
#define PAGE_PRESENT (1 << 0)
|
||||
#define PAGE_RW (1 << 1)
|
||||
#define PAGE_PCD (1 << 4)
|
||||
#define PAGE_USERMODE (1 << 2)
|
||||
|
||||
#ifndef __ASM__
|
||||
|
|
|
|||
Loading…
Reference in a new issue