forked from len0rd/rockbox
Fix the stack string issue for the Meizus, too
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22957 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
bbeb3ec751
commit
112bc15d65
1 changed files with 4 additions and 6 deletions
|
@ -192,18 +192,16 @@ enum { ALARM_START_WPS = 0,
|
||||||
This helps to save space for menus and options. */
|
This helps to save space for menus and options. */
|
||||||
|
|
||||||
#define VIRT_SIZE 0xFFFF /* more than enough for our string ID range */
|
#define VIRT_SIZE 0xFFFF /* more than enough for our string ID range */
|
||||||
#if CONFIG_CPU==S5L8701
|
#if defined(CPU_S5L870X)
|
||||||
/* the S5L8700 has IRAM at 0, so we use 0xffff bytes right after that */
|
/* the S5L870X has IRAM at 0, so we use 0xffff bytes right after that */
|
||||||
#define VIRT_PTR ((unsigned char*)0x2C000)
|
#define VIRT_PTR ((unsigned char*)0x40000)
|
||||||
#else
|
#elif CONFIG_CPU==DM320
|
||||||
#if CONFIG_CPU==DM320
|
|
||||||
/* the DM320 has IRAM at 0, so we use 0xffff bytes right after that */
|
/* the DM320 has IRAM at 0, so we use 0xffff bytes right after that */
|
||||||
#define VIRT_PTR ((unsigned char*)0x4000)
|
#define VIRT_PTR ((unsigned char*)0x4000)
|
||||||
#else
|
#else
|
||||||
/* a location where we won't store strings, 0 is the fastest */
|
/* a location where we won't store strings, 0 is the fastest */
|
||||||
#define VIRT_PTR ((unsigned char*)0)
|
#define VIRT_PTR ((unsigned char*)0)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
/* form a "virtual pointer" out of a language ID */
|
/* form a "virtual pointer" out of a language ID */
|
||||||
#define ID2P(id) (VIRT_PTR + id)
|
#define ID2P(id) (VIRT_PTR + id)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue