aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-03-19 17:22:14 -0700
committerChristian Cunningham <cc@localhost>2022-03-19 17:22:14 -0700
commitb97794f06c02194d63309d7038d32af392be3cb5 (patch)
tree84a7b5de6dcf1216b64366310100e948d8fce47c /src/lib
parent1c7402284d03c106705bd954295123958625c631 (diff)
Fixed MMU Entry Logic to Cover BSS
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/mmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/mmu.c b/src/lib/mmu.c
index 3543143..e9dda7a 100644
--- a/src/lib/mmu.c
+++ b/src/lib/mmu.c
@@ -19,7 +19,7 @@ extern unsigned long __bss_end;
void mmu_init(void)
{
for (unsigned long addr = 0x00000000;; addr += 0x00100000) {
- if ((addr+0x00100000) < (unsigned long)&__bss_end) {
+ if (addr < (unsigned long)&__bss_end + 0x00100000) {
mmu_section(addr, addr, CACHABLE | BUFFERABLE);
} else {
mmu_section(addr, addr, NO_PERMISSIONS_REQUIRED);