forked from Imagelibrary/rtems
bsps: Add fatal source/code to bsp_reset()
Mark bsp_reset() as no-return. Use default BSP fatal handler in lm32 and m68k BSPs. Remove empty bsp_reset() implementation. Update #5067.
This commit is contained in:
committed by
Joel Sherrill
parent
aeae283541
commit
002c6067ba
@@ -37,9 +37,11 @@
|
||||
#include <bsp.h>
|
||||
#include <bsp/bootcard.h>
|
||||
|
||||
void bsp_reset(void)
|
||||
void bsp_reset( rtems_fatal_source source, rtems_fatal_code code )
|
||||
{
|
||||
uint32_t PSCI_FN_SYSTEM_RESET = 0x84000009;
|
||||
(void) source;
|
||||
(void) code;
|
||||
__asm__ volatile(
|
||||
#if defined(AARCH64_MULTILIB_ARCH_V8) || defined(AARCH64_MULTILIB_ARCH_V8_ILP32)
|
||||
"mov x0, %0\n"
|
||||
@@ -53,4 +55,5 @@ void bsp_reset(void)
|
||||
#endif
|
||||
: : "r" (PSCI_FN_SYSTEM_RESET)
|
||||
);
|
||||
RTEMS_UNREACHABLE();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user