From 1cf851dbba4cab5e0578fd008e5dedde738ca7a3 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 5 Mar 2019 00:50:45 +0000 Subject: [PATCH] pentagon: fix the bank numbers We want 0-7 - the upper bit is accounted for by the 0x40 --- Kernel/platform-pentagon/discard.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Kernel/platform-pentagon/discard.c b/Kernel/platform-pentagon/discard.c index 162a41ef..b03499e1 100644 --- a/Kernel/platform-pentagon/discard.c +++ b/Kernel/platform-pentagon/discard.c @@ -21,7 +21,8 @@ void pagemap_init(void) 0: 16K The 1MB one uses bit 5 for 512K */ - for (i = 8; i < 16; i++) + /* Add the rest of the first 256K */ + for (i = 0; i < 8; i++) pagemap_add(0x40|i); /* If we deal with Scorpion and friends then we have to use 1FFD bits 4-7 for the high bits instead */ -- 2.34.1