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
_start:
__start:
/*
* _start is typically NOT at the beginning of the text segment --
* it is always called from either the reset vector or other code
* that does equivalent initialization (such as crt0-app.S).
* it is always called from either the reset vector (__start) or other
* code that does equivalent initialization (such as crt0-app.S).
*
* Assumptions on entry to _start:
* - low (level-one) and medium priority interrupts are disabled

View file

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