Altera_Forum
Honored Contributor
20 years agobootpath
Which is the first function (and in which file) that gets run when a (microtronix) nios uClinux kernel boots up?
Which is the first function (and in which file) that gets run when a (microtronix) nios uClinux kernel boots up?
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.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.
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.Thanks!