1
0
mirror of https://github.com/elua/elua.git synced 2025-01-25 01:02:54 +08:00

Another fix for LM3S stack/memory config (arm stacks are descending!)

This commit is contained in:
James Snyder 2009-10-13 23:51:20 +00:00
parent 81378aec51
commit 1601e287ad
2 changed files with 4 additions and 4 deletions

View File

@ -163,15 +163,15 @@
// A, B, C, D, E, F, G, H, J
#ifdef FORLM3S9B92
#define MEM_TOTAL ( 0x18000 )
#define SRAM_SIZE ( 0x18000 )
#else
#define MEM_TOTAL ( 0x10000 )
#define SRAM_SIZE ( 0x10000 )
#endif
// Allocator data: define your free memory zones here in two arrays
// (start address and end address)
#define MEM_START_ADDRESS { ( void* )end }
#define MEM_END_ADDRESS { ( void* )( SRAM_BASE + MEM_TOTAL - STACK_SIZE_TOTAL - 1 ) }
#define MEM_END_ADDRESS { ( void* )( SRAM_BASE + SRAM_SIZE - STACK_SIZE_TOTAL - 1 ) }
// *****************************************************************************
// CPU constants that should be exposed to the eLua "cpu" module

View File

@ -61,7 +61,7 @@ extern int main(void);
__attribute__ ((section(".isr_vector")))
void (* const g_pfnVectors[])(void) =
{
(void (*) (void))( SRAM_BASE + MEM_TOTAL - STACK_SIZE_TOTAL ),
(void (*) (void))( SRAM_BASE + SRAM_SIZE ),
// The initial stack pointer
ResetISR, // The reset handler
NmiSR, // The NMI handler