|
Lazuli
|
Kernel entry point. More...
#include <stdint.h>#include <Lazuli/common.h>#include <Lazuli/config.h>#include <Lazuli/sys/arch/arch.h>#include <Lazuli/sys/compiler.h>#include <Lazuli/sys/kernel.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 | |
| void | main (void) |
| Main entry point for user tasks. | |
| void | Kernel_Main (void) |
| This is the kernel entry point. | |
| void | Kernel_Panic (void) |
| Kernel panic. | |
| void | Kernel_ManageFailure (void) |
| Manage a failure that can happen in a function call. | |
Variables | |
| volatile lz_system_status_t | systemStatus = SYSTEM_STATUS_FLAG_IN_KERNEL |
| System status "register" (bit field). | |
| AllocationMap | kernelAllocationMap |
| Allocation map for the kernel. | |
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.
| void main | ( | void | ) |
Main entry point for user tasks.
This is the function the user has to define to register his own tasks.
This prototype differs from the standard "int main(void)" as the return value is useless here.
| void Kernel_Main | ( | void | ) |
| void Kernel_Panic | ( | void | ) |
| void Kernel_ManageFailure | ( | void | ) |
Manage a failure that can happen in a function call.
Basically, this function does the following:
This function can be used after testing parameters in functions that can be called by both the kernel or user tasks (e.g. library functions).
| volatile lz_system_status_t systemStatus = SYSTEM_STATUS_FLAG_IN_KERNEL |
| AllocationMap kernelAllocationMap |