Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12589 Discussions

'callr main' but there are two main?

Altera_Forum
Honored Contributor II
1,156 Views

In arch\nios2nommu\kernel\head.S,there is a piece of code like this: 

callr main. 

However,main function appeared two times in the kernel of linux.they are: 

arch\nios2nommu\kernel\asm-offsets.c 

arch\nios2nommu\kernel\start.c 

And my question is, the 'callr main' of head.S call for which?The main function  

in asm-offsets.c or the main function in start.c or anything else? 

Thanks in advance!
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
396 Views

 

--- Quote Start ---  

originally posted by xunios@Jul 4 2006, 07:32 PM 

in arch\nios2nommu\kernel\head.s,there is a piece of code like this: 

    callr main. 

however,main  function appeared two times in the kernel of linux.they are: 

  arch\nios2nommu\kernel\asm-offsets.c 

    arch\nios2nommu\kernel\start.c 

and my question is, the 'callr main' of head.s call for which?the main function  

in asm-offsets.c or the main function in start.c or anything else? 

thanks in advance! 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=16655) 

--- quote end ---  

 

--- Quote End ---  

 

Sorry ,I made a mistake.The asm-offsets.c is useless in the kernel.
0 Kudos
Reply