kernel: fix 512-kB RAM check on mono being duped by cache

This was noticed by Sentaro21 and tested by CalcLoverHK on a Slim.
This commit is contained in:
Lephenixnoir 2024-10-19 09:43:49 +02:00
parent 47b86b83c8
commit 2ef2c7de27
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

View file

@ -90,10 +90,10 @@ void hw_detect(void)
gint[HWFS] = HWFS_CASIOWIN; 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 *R4 = (void *)0xa8040000;
volatile uint8_t *R0 = (void *)0x88000000; volatile uint8_t *R0 = (void *)0xa8000000;
/* Make backups */ /* Make backups */
uint8_t b0 = *R0; uint8_t b0 = *R0;