Boot framework rework (#45)
[lunaix-os.git] / lunaix-os / arch / generic / includes / sys / failsafe.h
1 #ifndef __LUNAIX_FAILSAFE_H
2 #define __LUNAIX_FAILSAFE_H
3
4 #define STACK_SANITY            0xbeefc0de
5
6 #ifndef __ASM__
7
8 #include <lunaix/types.h>
9
10 static inline bool
11 check_bootstack_sanity()
12 {
13     return true;
14 }
15
16 static inline void must_inline noret
17 failsafe_diagnostic() {
18     unreachable;
19 }
20
21 #endif
22
23 #endif /* __LUNAIX_FAILSAFE_H */