From 4906ad3388158aabec85b0345ccdfa7df4b16479 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Fri, 27 Dec 2019 22:02:56 -0500 Subject: memory map explanation --- src/kernel/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/main.c') 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) -- cgit v1.2.3