From 01ddb564bff30063dd76f974436b224c119ce89a Mon Sep 17 00:00:00 2001 From: Catalin Patulea Date: Fri, 2 Nov 2007 02:50:02 +0000 Subject: [PATCH] DM320 has IRAM at 0, so move VIRT_PTR somewhere else (fixes empty menu item text bug) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15400 a1c6a512-1295-4272-9138-f99709370657 --- apps/settings.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/settings.h b/apps/settings.h index db7d5dc5b2..f54569b462 100644 --- a/apps/settings.h +++ b/apps/settings.h @@ -200,6 +200,9 @@ enum { ALARM_START_WPS = 0, /* a space which is defined in stubs.c */ extern unsigned char vp_dummy[VIRT_SIZE]; #define VIRT_PTR vp_dummy +#elif CONFIG_CPU==DM320 +/* the DM320 has IRAM at 0, so we use 0xffff bytes right after that */ +#define VIRT_PTR ((unsigned char*)0x4000) #else /* a location where we won't store strings, 0 is the fastest */ #define VIRT_PTR ((unsigned char*)0)