There are some aspects of the execution environment that must be initialized before the
application starts. If the application is hosted by an operating system, the initialization
will be done by the application loader. If the application runs standalone, the C library
can perform the initialization of the environment and call the application entry point at
main(). If you are using scatter loading, however, you must retarget
__user_intial_stackheap() to initialize the stack and heap. An example of how to do
this is in retarget.c.
The state of ARM processor cores after reset is:
• SVC mode
• interrupts disabled
• ARM state.
阅读(918) | 评论(0) | 转发(0) |