arch: xtensa: set __start as entry point for Xtensa.

__start is deemed the entry point for all architectures in Zephyr.
Accordingly, Xtensa code had to be modified a bit to fall in line
with this convention.

Change-Id: If3ed344721c9f2735378b866662a68d8d5795324
Signed-off-by: Rajavardhan Gundi <rajavardhan.gundi@intel.com>
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Rajavardhan Gundi 2017-09-04 12:24:53 +05:30 committed by Anas Nashif
commit 9ed55af2f8
2 changed files with 6 additions and 7 deletions

View file

@ -49,11 +49,10 @@
.align 4 .align 4
_start: _start:
__start:
/* /*
* _start is typically NOT at the beginning of the text segment -- * _start is typically NOT at the beginning of the text segment --
* it is always called from either the reset vector or other code * it is always called from either the reset vector (__start) or other
* that does equivalent initialization (such as crt0-app.S). * code that does equivalent initialization (such as crt0-app.S).
* *
* Assumptions on entry to _start: * Assumptions on entry to _start:
* - low (level-one) and medium priority interrupts are disabled * - low (level-one) and medium priority interrupts are disabled

View file

@ -24,8 +24,8 @@
.section .ResetVector.text, "ax" .section .ResetVector.text, "ax"
.align 4 .align 4
.global _ResetVector .global __start
_ResetVector: __start:
#if (!XCHAL_HAVE_HALT || defined(XTOS_UNPACK)) && XCHAL_HAVE_IMEM_LOADSTORE #if (!XCHAL_HAVE_HALT || defined(XTOS_UNPACK)) && XCHAL_HAVE_IMEM_LOADSTORE
/* /*
@ -39,7 +39,7 @@ _ResetVector:
*/ */
j _ResetHandler j _ResetHandler
.size _ResetVector, . - _ResetVector .size __start, . - __start
#if XCHAL_HAVE_HALT #if XCHAL_HAVE_HALT
/* /*
@ -692,7 +692,7 @@ unpackdone:
#if (!XCHAL_HAVE_HALT || defined(XTOS_UNPACK)) && XCHAL_HAVE_IMEM_LOADSTORE #if (!XCHAL_HAVE_HALT || defined(XTOS_UNPACK)) && XCHAL_HAVE_IMEM_LOADSTORE
.size _ResetHandler, . - _ResetHandler .size _ResetHandler, . - _ResetHandler
#else #else
.size _ResetVector, . - _ResetVector .size __start, . - __start
#endif #endif
.text .text