The bootstrap user module
Although replacing this module with another can allow the user to run an effectively different operating system, this is currently the default.
Checks and loads all modules present in the ramdisk and starts each of them
Marcel Sondaar
Educational purposes
stage4_load.asm | The bootstrap user module |
Functions | |
initcombuffer | |
loadunittable | |
ELF_Start | Loads an elf file and start it |
ELF_Load | Parses an elf file in memory |
ELF_Loadsection | Parses an elf section and loads it into memory |
ELF_Adjustsection | Parses an elf relocation section and loads it into memory |
ELF_Copysection | Copies a section from an ELF file to newly allocated memory |
ELF_AllocSection | Parses an elf bss section header, allocates it and zeroes it |
Todo’s | |
get task entry point and create threads for all modules | |
Fixmes | |
create a thread rather than bruteforce starting things | kernel CreateThread |
Loads an elf file and start it
none
unknown
Parses an elf file in memory
unknown (all but ESP)
Parses an elf section and loads it into memory
unknown
unknown
Parses an elf relocation section and loads it into memory
unknown
unknown
Copies a section from an ELF file to newly allocated memory
unknown
EAX, EDI