1
0
Fork 0
forked from len0rd/rockbox

internals: VIRT_PTR correction for PP SoCs

Accidentally put one too many zeroes in the address, placing it into
(real) IRAM instead of just past the edge of DRAM.

This didn't affect the s3c2440 and imx31, as they didn't have anything
in that typo'd location.

Change-Id: I2a2e3e3e0d1222ccd04901f8a85790cf21f0aac9
This commit is contained in:
Solomon Peachy 2025-02-13 08:33:29 -05:00
parent dc0cef8304
commit ad556794d2

View file

@ -237,7 +237,7 @@ enum { ALARM_START_WPS = 0,
#define VIRT_PTR ((unsigned char*)0x1000)
#elif CONFIG_CPU == S3C2440 || defined(CPU_PP) || CONFIG_CPU==IMX31L
/* up to 64MB of DRAM at 0x0 */
#define VIRT_PTR ((unsigned char*)0x40000000)
#define VIRT_PTR ((unsigned char*)0x4000000)
#else
/* offset from 0x0 slightly */
#define VIRT_PTR ((unsigned char*)sizeof(char*))