diff options
Diffstat (limited to 'src/coreboot-cpu-api.c')
| -rw-r--r-- | src/coreboot-cpu-api.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/coreboot-cpu-api.c b/src/coreboot-cpu-api.c deleted file mode 100644 index c118192..0000000 --- a/src/coreboot-cpu-api.c +++ /dev/null @@ -1,22 +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 -} |
