- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Which is the first function (and in which file) that gets run when a (microtronix) nios uClinux kernel boots up?
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks!

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page