2020-06-15 07:18:57 -07:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_NTEXCEPTIONRECORD_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_NT_STRUCT_NTEXCEPTIONRECORD_H_
|
|
|
|
|
|
|
|
#define kNtExceptionMaximumParameters 15
|
2023-10-04 07:07:43 -07:00
|
|
|
#define kNtExceptionNoncontinuable 1
|
2020-06-15 07:18:57 -07:00
|
|
|
|
|
|
|
struct NtExceptionRecord {
|
|
|
|
uint32_t ExceptionCode; /* kNtException... */
|
|
|
|
uint32_t ExceptionFlags; /* kNtExceptionNoncontinuable */
|
|
|
|
struct NtExceptionRecord *ExceptionRecord; /* nested exceptions */
|
|
|
|
void *ExceptionAddress; /* %rip */
|
|
|
|
uint32_t NumberParameters; /* #ExceptionInformation */
|
2023-10-04 07:07:43 -07:00
|
|
|
uint64_t ExceptionInformation[kNtExceptionMaximumParameters];
|
2020-06-15 07:18:57 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_NTEXCEPTIONRECORD_H_ */
|