Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

'callr main' but there are two main?

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!

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- 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.