Parse multiboot information

This commit is contained in:
2017-12-04 22:09:14 +01:00
parent d0b946f327
commit 49f7738be2
6 changed files with 224 additions and 7 deletions

View File

@@ -8,6 +8,7 @@
#include <stdint.h>
#define V2P(a) ((uintptr_t)(a) & ~KERNEL_OFFSET)
#define P2V(a) ((void *)((uintptr_t)(a) | KERNEL_OFFSET))
#define incptr(p, n) ((void *)(((uintptr_t)(p)) + (n)))
#endif
#define P1_OFFSET(a) (((a)>>12) & 0x1FF)