Loading...
--- xnu/xnu-12377.61.12/bsd/sys/reason.h
+++ xnu/xnu-10063.101.15/bsd/sys/reason.h
@@ -65,31 +65,6 @@
/* The blocking allocation is currently not exported to KEXTs */
int os_reason_alloc_buffer(os_reason_t cur_reason, uint32_t osr_bufsize);
-
-typedef struct _exception_info {
- int os_reason;
- int signal;
- exception_type_t exception_type;
- mach_exception_data_type_t mx_code;
- mach_exception_data_type_t mx_subcode;
- struct kt_info {
- int kt_subsys;
- uint32_t kt_error;
- } kt_info;
-} exception_info_t;
-
-#define PX_FLAGS_NONE 0
-/* think twice about userspace debugging experience before using PX_DEBUG_NO_HONOR */
-#define PX_DEBUG_NO_HONOR (1 << 0) /* force exit even when debugging */
-#define PX_KTRIAGE (1 << 1) /* leave a ktriage record */
-#define PX_PSIGNAL (1 << 2) /* send sig instead of forced exit */
-#define PX_NO_EXCEPTION_UTHREAD (1 << 3) /* do not set bsdthread exception */
-
-int exit_with_mach_exception(struct proc *p, exception_info_t exception, uint32_t flags);
-#if CONFIG_EXCLAVES
-int exit_with_exclave_exception(struct proc *p, exception_info_t exception, uint32_t flags);
-#endif
-void exit_with_mach_exception_using_ast(exception_info_t exception, uint32_t flags, bool fatal);
#else /* XNU_KERNEL_PRIVATE */
@@ -147,22 +122,14 @@
#define OS_REASON_ROSETTA 34
#define OS_REASON_LIBIGNITION 35
#define OS_REASON_BOOTMOUNT 36
-#define OS_REASON_MTE_FAIL 37
+
+
#define OS_REASON_REALITYKIT 38
-#define OS_REASON_AUDIO 39
-#define OS_REASON_WAKEBOARD 40
-#define OS_REASON_CORERC 41
-#define OS_REASON_SELF_RESTRICT 42
-#define OS_REASON_ARKIT 43
-#define OS_REASON_CAMERA 44
-#define OS_REASON_BACKBOARD 45
-#define OS_REASON_POWEREXCEPTIONS 46
-#define OS_REASON_SECINIT 47
/*
* Update whenever new OS_REASON namespaces are added.
*/
-#define OS_REASON_MAX_VALID_NAMESPACE OS_REASON_SECINIT
+#define OS_REASON_MAX_VALID_NAMESPACE OS_REASON_REALITYKIT
#define OS_REASON_BUFFER_MAX_SIZE 5120
@@ -297,8 +264,6 @@
#define EXEC_EXIT_REASON_SET_DYLD_INFO 17
#define EXEC_EXIT_REASON_MACHINE_THREAD 18
#define EXEC_EXIT_REASON_BAD_PSATTR 19
-#define EXEC_EXIT_REASON_NOX86EXEC 20
-#define EXEC_EXIT_REASON_MAP_EXEC_FAILURE 21
/*
* guard reasons
*/