StuBS
startup.h File Reference

Startup of the first core, also known as bootstrap processor (BSP) More...

#include "compiler/fix.h"
Include dependency graph for startup.h:

Functions

void startup_bsp () ERROR_ON_CALL("The kernel entry point shall never be called from your code!")
 Entry point of your kernel. More...
 
void kernel_init () ERROR_ON_CALL("The kernel init function shall never be called from your code!")
 Initializes the C++ environment and detects system components. More...
 
int main ()
 Kernels main function. More...
 

Detailed Description

Startup of the first core, also known as bootstrap processor (BSP)

Function Documentation

◆ kernel_init()

void kernel_init ( )

Initializes the C++ environment and detects system components.

The startup code jumps to this high level function. After initialization it will call main()

◆ main()

int main ( )

Kernels main function.

Called after initialization of the system by kernel_init()

◆ startup_bsp()

void startup_bsp ( )

Entry point of your kernel.

Executed by boot loader. Stores Pointer to Multiboot information structure, initializes stack pointer, and finally calls the C++ kernel_init function