lm3s1968: enlarge the stack size of the main process to 1K.
[bertos.git] / bertos / cpu / cortex-m3 / scripts / lm3s1968_rom.ld
index 57a9ba9ae1661acf8418d9d820461170f0d2cfcb..b93a49f104ea25d38cdbc33935e83a0fc0acb9f2 100644 (file)
@@ -49,15 +49,10 @@ MEMORY
   ram(rwx) : org = 0x20000000, len = 64k
 }
 
-
 /*
  * Define stack size here
  */
-FIQ_STACK_SIZE = 0x0100;
-IRQ_STACK_SIZE = 0x0100;
-ABT_STACK_SIZE = 0x0100;
-UND_STACK_SIZE = 0x0100;
-SVC_STACK_SIZE = 0x0400;
+MAIN_STACK_SIZE = 0x0400;
 
 /*
  * Allocate section memory
@@ -80,10 +75,10 @@ SECTIONS
                . = ALIGN(4);
        } > rom
 
-       _etext = .;
-       PROVIDE (__etext = .);
+       __text_end = .;
+       PROVIDE (__text_end = .);
 
-       .data : AT (_etext)
+       .data : AT (__text_end)
        {
                PROVIDE (__data_start = .);
                *(vtable)
@@ -109,33 +104,10 @@ SECTIONS
         * Data heap is allocate at end of stack.
         */
        PROVIDE (__stack_start = .);
-
-       PROVIDE (__stack_fiq_start = .);
-       . += FIQ_STACK_SIZE;
-       . = ALIGN(4);
-       PROVIDE (__stack_fiq_end = .);
-
-       PROVIDE (__stack_irq_start = .);
-       . += IRQ_STACK_SIZE;
-       . = ALIGN(4);
-       PROVIDE (__stack_irq_end = .);
-
-       PROVIDE (__stack_abt_start = .);
-       . += ABT_STACK_SIZE;
        . = ALIGN(4);
-       PROVIDE (__stack_abt_end = .);
-
-       PROVIDE (__stack_und_start = .);
-       . += UND_STACK_SIZE;
-       . = ALIGN(4);
-       PROVIDE (__stack_und_end = .);
-
-       PROVIDE (__stack_svc_start = .);
-       . += SVC_STACK_SIZE;
-       . = ALIGN(4);
-       PROVIDE (__stack_svc_end = .);
-
+       . += MAIN_STACK_SIZE;
        PROVIDE (__stack_end = .);
 
        PROVIDE (__heap_start = .);
+       . = ALIGN(4);
 }