rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Functions
arm_common.cpp File Reference

Detailed Description

Low level common ARM code.

Date
Nov 14, 2023
Author
Andrey Belomutskiy, (c) 2012-2023
andreika prome.nosp@m.theu.nosp@m.s.pcb.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Definition in file arm_common.cpp.

Functions

void causeHardFault ()
 

Function Documentation

◆ causeHardFault()

void causeHardFault ( )

Definition at line 16 of file arm_common.cpp.

16 {
17#if EFI_PROD_CODE
18 // Set the function pointer to an invalid address
19 void (*invalidFunction)() = (void(*)())0xDEADBEEF;
20 // Calling the invalid function will trigger a hard fault
21 invalidFunction();
22#endif /* EFI_PROD_CODE */
23}

Referenced by errorHandlerInit().

Here is the caller graph for this function:

Go to the source code of this file.