Forum Discussion

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

bootpath

Which is the first function (and in which file) that gets run when a (microtronix) nios uClinux kernel boots up?

4 Replies

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

    One of the kernel guys can correct me if I'm wrong, but I believe the first code executed is in linux-2.6.x/arch/nios2nommu/kernel/head.S. Look for "__start:"

    Dennis Scott

    Microtronix Datacom Ltd.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks! So where is the main function located? (what that assembly code does it work around for a bit, then call main) I was more asking about that.

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

    The main function is located in the start.c file in the same directory. Main then calls start_kernel() found in linux-2.6.x/init/main.c.

    Dennis Scott

    Microtronix Datacom Ltd.