add kip detection

This commit is contained in:
Lightos1
2026-06-27 19:47:00 +02:00
parent cd9d494de9
commit f3886c60b0
8 changed files with 71 additions and 7 deletions

View File

@@ -24,10 +24,7 @@
#define CRASH(msg, ...) { ams::diag::AbortImpl(msg, __PRETTY_FUNCTION__, "", 0); __builtin_unreachable(); }
#include "customize.hpp"
#if defined(AMS_BUILD_FOR_AUDITING) || defined(AMS_BUILD_FOR_DEBUGGING)
#include "oc_log.hpp"
#endif
#include "oc_log.hpp"
#define PATCH_OFFSET(offset, value) \
static_assert(sizeof(__typeof__(offset)) <= sizeof(u64)); \