From 2ef2c7de2747ad987e82b892a45a9a7c083aa448 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Sat, 19 Oct 2024 09:43:49 +0200 Subject: [PATCH] kernel: fix 512-kB RAM check on mono being duped by cache This was noticed by Sentaro21 and tested by CalcLoverHK on a Slim. --- src/kernel/hardware.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kernel/hardware.c b/src/kernel/hardware.c index 793c39e..56e9dcb 100644 --- a/src/kernel/hardware.c +++ b/src/kernel/hardware.c @@ -90,10 +90,10 @@ void hw_detect(void) gint[HWFS] = HWFS_CASIOWIN; } - /* Detect RAM by checking if 8804'0000 is the same as 8800'0000. */ + /* Detect RAM by checking if a804'0000 is the same as a800'0000. */ - volatile uint8_t *R4 = (void *)0x88040000; - volatile uint8_t *R0 = (void *)0x88000000; + volatile uint8_t *R4 = (void *)0xa8040000; + volatile uint8_t *R0 = (void *)0xa8000000; /* Make backups */ uint8_t b0 = *R0;