The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
kernel.h File Reference

Go to the source code of this file.

Functions

void cstart (phys_addr_t boot_phys, uint32_t magic)
 stable kernel entry point invoked from early asm with boot metadata.
void kernel_main (boot_info_t *boot)
 entry point for the c kernel after early asm setup.

Function Documentation

◆ cstart()

void cstart ( phys_addr_t boot_phys,
uint32_t magic )

stable kernel entry point invoked from early asm with boot metadata.

Parameters
boot_physphysical address of the boot information: stage2's boot_info_t, or the multiboot 2 information.
magicMULTIBOOT2_BOOT_MAGIC for a multiboot 2 boot, else 0.

◆ kernel_main()

void kernel_main ( boot_info_t * boot)

entry point for the c kernel after early asm setup.

Parameters
bootpointer to bootloader-provided boot_info_t.
Returns
does not return.