aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);