Lazuli
Functions | Variables
kernel.c File Reference

Kernel entry point. More...

#include <Lazuli/common.h>
#include <Lazuli/config.h>
#include <Lazuli/sys/arch/arch.h>
#include <Lazuli/sys/linker.h>
#include <Lazuli/sys/memory.h>
#include <Lazuli/sys/scheduler.h>

Go to the source code of this file.

Functions

int main (void)
 Main entry point for user tasks. More...
 
void Kernel_Main (void)
 This is the kernel entry point. More...
 
void Kernel_Panic (void)
 Kernel panic. More...
 

Variables

AllocationMap kernelAllocationMap
 The allocation map for the whole kernel. More...
 

Detailed Description

Kernel entry point.

This file describes all the kernel routines such as:

It also holds the kernel memory allocation map.

Definition in file kernel.c.

Function Documentation

◆ main()

int main ( void  )

Main entry point for user tasks.

This is the function the user has to define to register his own tasks.

Returns
The return value is not used. It's simply here to conform to the standard definition of main.

◆ Kernel_Main()

void Kernel_Main ( void  )

This is the kernel entry point.

This function must never return.

Definition at line 47 of file kernel.c.

◆ Kernel_Panic()

void Kernel_Panic ( void  )

Kernel panic.

Warning
This function is declared to never return! If this has to evolve, remember to remove NORETURN declaration on this function.

Definition at line 77 of file kernel.c.

Variable Documentation

◆ kernelAllocationMap

AllocationMap kernelAllocationMap

The allocation map for the whole kernel.

Allocation map for the kernel.

Definition at line 40 of file kernel.c.