diff options
-rw-r--r-- | doc/internals/mmap.md | 3 | ||||
-rw-r--r-- | src/kernel/main.c | 2 | ||||
-rw-r--r-- | src/kernel/stub.asm | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/doc/internals/mmap.md b/doc/internals/mmap.md new file mode 100644 index 0000000..956044b --- /dev/null +++ b/doc/internals/mmap.md @@ -0,0 +1,3 @@ +# Internals - Memory Map + +##
\ No newline at end of file diff --git a/src/kernel/main.c b/src/kernel/main.c index f49d9e6..3377a76 100644 --- a/src/kernel/main.c +++ b/src/kernel/main.c @@ -397,7 +397,7 @@ uint32_t main(void) { put_sz(": ignoring"); } - tag_pointer = (struct tag_start *)(((uint32_t)tag_pointer + tag_pointer->size - 1 & 0xfffffff8) + 8); + tag_pointer = (struct tag_start *)(((uint32_t)tag_pointer + tag_pointer->size - 1 & ~0x00000007) + 8); } if (!have_boot_device) diff --git a/src/kernel/stub.asm b/src/kernel/stub.asm index bad26aa..d5d81ef 100644 --- a/src/kernel/stub.asm +++ b/src/kernel/stub.asm @@ -31,7 +31,6 @@ dw 0x0000;flags dd mb_end - $$ - 16 dd 5;boot device dd 6;memory map - mb_end: section .text |