From 4eea7ac2025293de8e8ad88ac331c3cc5d0003db Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Tue, 1 Mar 2005 12:25:30 +0000 Subject: iRiver: Moved the main thread stack to IRAM git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6088 a1c6a512-1295-4272-9138-f99709370657 --- firmware/app.lds | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'firmware/app.lds') diff --git a/firmware/app.lds b/firmware/app.lds index 2e70eb957d..daed49a628 100644 --- a/firmware/app.lds +++ b/firmware/app.lds @@ -182,23 +182,31 @@ SECTIONS _iramend = .; } > IRAM +#ifdef IRIVER_H100 + .stack : + { + *(.stack) + stackbegin = .; + . += 0x8000; + stackend = .; + } > IRAM +#else /* TRICK ALERT! We want 0x2000 bytes of stack, but we set the section size smaller, and allow the stack to grow into the .iram copy */ .stack ADDR(.data) + SIZEOF(.data) + SIZEOF(.iram): { *(.stack) _stackbegin = . - SIZEOF(.iram); - stackbegin = . - SIZEOF(.iram); -#if MEMORYSIZE >= 32 - . += 0x8000 - SIZEOF(.iram); -#else . += 0x2000 - SIZEOF(.iram); -#endif _stackend = .; - stackend = .; } > DRAM +#endif +#ifdef IRIVER_H100 + .bss ADDR(.data) + SIZEOF(.data) + SIZEOF(.iram): +#else .bss : +#endif { _edata = .; *(.bss) -- cgit v1.2.3