diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-07-31 08:57:14 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-07-31 08:57:14 +0100 |
| commit | 1891d7343a9ac25ab157c4495581a0fcbd7fbcbf (patch) | |
| tree | c6da72fdf5db30c67c28e968883f869ee57600d0 /src/coreboot-cpu-api.c | |
| parent | 18d33e155d2f56e59eb49dadbb30ab2f7ac3e852 (diff) | |
feat! refactor NeBoot for NeKernel.org v1.0.0
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/coreboot-cpu-api.c')
| -rw-r--r-- | src/coreboot-cpu-api.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/coreboot-cpu-api.c b/src/coreboot-cpu-api.c deleted file mode 100644 index 2491f15..0000000 --- a/src/coreboot-cpu-api.c +++ /dev/null @@ -1,20 +0,0 @@ -/* ------------------------------------------- - - Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved. - -------------------------------------------- */ - -#include <lib/boot.h> - -/// @brief Restarts the computer. -/// @param none. -void cb_restart_machine(void) { -#ifdef __COMPILE_RISCV__ - volatile uint32_t* brd_pwr = (volatile uint32_t*) 0x100000; - *brd_pwr = 0x7777; // send reboot signal from DMA. - - while (1) { - asm volatile("wfi"); - } -#endif -} |
