Initial import
This commit is contained in:
19
libc/nt/struct/ntexceptionrecord.h
Normal file
19
libc/nt/struct/ntexceptionrecord.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_NTEXCEPTIONRECORD_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_NTEXCEPTIONRECORD_H_
|
||||
|
||||
#define kNtExceptionMaximumParameters 15
|
||||
#define kNtExceptionNoncontinuable 1
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtExceptionRecord {
|
||||
uint32_t ExceptionCode; /* kNtException... */
|
||||
uint32_t ExceptionFlags; /* kNtExceptionNoncontinuable */
|
||||
struct NtExceptionRecord *ExceptionRecord; /* nested exceptions */
|
||||
void *ExceptionAddress; /* %rip */
|
||||
uint32_t NumberParameters; /* #ExceptionInformation */
|
||||
uint32_t *ExceptionInformation[kNtExceptionMaximumParameters];
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_NTEXCEPTIONRECORD_H_ */
|
||||
Reference in New Issue
Block a user