From e05ca6c7c517ae4b53c01c615428f7be72c1becb Mon Sep 17 00:00:00 2001 From: Michael Sparmann Date: Mon, 5 Oct 2009 12:29:01 +0000 Subject: Fix displaying strings on stack for iPod Nano 2G git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22951 a1c6a512-1295-4272-9138-f99709370657 --- apps/settings.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/settings.h') diff --git a/apps/settings.h b/apps/settings.h index b64fe37c74..7ecd63cf29 100644 --- a/apps/settings.h +++ b/apps/settings.h @@ -192,6 +192,10 @@ enum { ALARM_START_WPS = 0, This helps to save space for menus and options. */ #define VIRT_SIZE 0xFFFF /* more than enough for our string ID range */ +#if CONFIG_CPU==S5L8701 +/* the S5L8700 has IRAM at 0, so we use 0xffff bytes right after that */ +#define VIRT_PTR ((unsigned char*)0x2C000) +#else #if CONFIG_CPU==DM320 /* the DM320 has IRAM at 0, so we use 0xffff bytes right after that */ #define VIRT_PTR ((unsigned char*)0x4000) @@ -199,6 +203,7 @@ enum { ALARM_START_WPS = 0, /* a location where we won't store strings, 0 is the fastest */ #define VIRT_PTR ((unsigned char*)0) #endif +#endif /* form a "virtual pointer" out of a language ID */ #define ID2P(id) (VIRT_PTR + id) -- cgit v1.2.3