Kernel symbols definition.
More...
Go to the source code of this file.
Kernel symbols definition.
- Copyright
- 2017-2020, Remi Andruccioli remi..nosp@m.andr.nosp@m.uccio.nosp@m.li@g.nosp@m.mail..nosp@m.com
This file declares symbols related to the kernel itself.
Definition in file kernel.h.
◆ SYSTEM_STATUS_FLAG_IN_KERNEL
The flag constant for the status "in kernel".
Definition at line 39 of file kernel.h.
◆ SYSTEM_STATUS_IS_IN_KERNEL
Get a boolean value indicating if the system is curently in kernel mode.
Definition at line 45 of file kernel.h.
◆ lz_system_status_t
The type used for the system status "register".
Definition at line 29 of file kernel.h.
◆ Kernel_Panic()
| void Kernel_Panic |
( |
void |
| ) |
|
Kernel panic.
Take the appropriate decision according to the configuration: infinite loop, reset the system.
Definition at line 84 of file kernel.c.
◆ Kernel_ManageFailure()
| void Kernel_ManageFailure |
( |
void |
| ) |
|
Manage a failure that can happen in a function call.
Basically, this function does the following:
- If we are running in the context of a task, then abort the running task.
- If we are running in the kernel context, then kernel panic.
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).
Definition at line 95 of file kernel.c.
◆ systemStatus
System status "register" (bit field).
Definition at line 45 of file kernel.c.
◆ kernelAllocationMap
Allocation map for the kernel.
Definition at line 47 of file kernel.c.