mem: adjust MMIO addresses

This commit is contained in:
Michael Shaw 2023-05-10 01:14:33 -04:00
commit b90946e1f8
5 changed files with 8 additions and 4 deletions

View file

@ -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();

View file

@ -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__