This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Initialization functions in ARM gcc library

Hi,

I am writing bare-matal test code on K2H with ARM cortex-a15, I am using the GNU v4.7.3 compiler with CCS5.4.

I have two questions about the gcc library function. Could you help me?

  1. At the beginning of the gcc library function _start, there is a “SVC #1193046”, what is the purpose of this call, how should I handle it?
  2. How the gcc library initialize the stack? In the link option and link command file, only one .stack section is defined, but as you known, each ARM mode (User, Supervisor, Monitor…) has separate stack, how the gcc library allocate the .stack section to each mode?

 

Thank you very much!