X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/6c506d8916fb114675e93d0e2cb20831d4022294..d1b1c8d9119229dbeed06cd252917e54a1cb77f6:/lunaix-os/arch/generic/includes/sys/failsafe.h diff --git a/lunaix-os/arch/generic/includes/sys/failsafe.h b/lunaix-os/arch/generic/includes/sys/failsafe.h new file mode 100644 index 0000000..26020cd --- /dev/null +++ b/lunaix-os/arch/generic/includes/sys/failsafe.h @@ -0,0 +1,23 @@ +#ifndef __LUNAIX_FAILSAFE_H +#define __LUNAIX_FAILSAFE_H + +#define STACK_SANITY 0xbeefc0de + +#ifndef __ASM__ + +#include + +static inline bool +check_bootstack_sanity() +{ + return true; +} + +static inline void must_inline noret +failsafe_diagnostic() { + unreachable; +} + +#endif + +#endif /* __LUNAIX_FAILSAFE_H */