ArvernOS
Loading...
Searching...
No Matches
kmain.h File Reference
#include <stdint.h>
Include dependency graph for kmain.h:

Functions

void kmain_early_start ()
 
void kmain_start (uintptr_t initrd_addr, const char *cmdline)
 

Detailed Description

This file contains the functions shared by all arch- and/or board-specific kmain() functions, which are the kernel entry point functions in ArvernOS.

Function Documentation

◆ kmain_early_start()

void kmain_early_start ( )

Early starts the kernel.

◆ kmain_start()

void kmain_start ( uintptr_t initrd_addr,
const char * cmdline )

Starts the kernel. This function should be called once the arch- and/or board-specific initialization code has been executed.

Parameters
initrd_addrthe address of the init ramdisk (or NULL)
cmdlinethe kernel command line, usually passed by the bootloader somehow

Keep a copy of the original command line.