arch/x86/src/qemu/qemu_head.S: Correct .bss, IDLE stack, heap organization.

This commit is contained in:
Gregory Nutt 2018-10-26 15:48:22 -06:00
parent f4cb7dafc3
commit 511c90d050
1 changed files with 2 additions and 16 deletions

View File

@ -109,7 +109,7 @@
__start: __start:
/* Set up the stack */ /* Set up the stack */
mov $(idle_stack + CONFIG_IDLETHREAD_STACKSIZE), %esp mov $(_ebss + CONFIG_IDLETHREAD_STACKSIZE), %esp
/* Multiboot setup */ /* Multiboot setup */
@ -129,20 +129,6 @@ hang:
jmp hang jmp hang
.size __start, . - __start .size __start, . - __start
/****************************************************************************
* .bss
****************************************************************************/
/* The stack for the IDLE task thread is declared in .bss. NuttX boots and
* initializes on the IDLE thread, then at the completion of OS startup, this
* thread becomes the thread that executes when there is nothing else to
* do in the system (see up_idle()).
*/
.type idle_stack, @object
.comm idle_stack, CONFIG_IDLETHREAD_STACKSIZE, 32
.size idle_stack, CONFIG_IDLETHREAD_STACKSIZE
/**************************************************************************** /****************************************************************************
* .rodata * .rodata
****************************************************************************/ ****************************************************************************/
@ -156,6 +142,6 @@ hang:
.type g_idle_topstack, @object .type g_idle_topstack, @object
g_idle_topstack: g_idle_topstack:
.long _ebss .long _ebss + CONFIG_IDLETHREAD_STACKSIZE
.size g_idle_topstack, . - g_idle_topstack .size g_idle_topstack, . - g_idle_topstack
.end .end