|
ArvernOS
|
#include <stdbool.h>#include <stdint.h>Functions | |
| void | arch_restart () |
| void | arch_poweroff (int exit_code) |
| void | arch_halt () |
| bool | arch_is_kernel_address (uintptr_t addr) |
| void arch_halt | ( | ) |
Shutdowns everything and performs a clean system halt.
| bool arch_is_kernel_address | ( | uintptr_t | addr | ) |
Determines whether an address points to kernel code.
| addr | an address |
It does not have to be perfect, we just have to believe it will be fine.
| void arch_poweroff | ( | int | exit_code | ) |
Shutdowns everything and performs a clean system power off.
| exit_code | when CONFIG_SEMIHOSTING is set to 1, this value is returned to the emulator. Otherwise, this value is ignored |
| void arch_restart | ( | ) |
Shutdowns everything and performs a clean reboot.