Commit 9bc0eaf6 authored by Alex Brainman's avatar Alex Brainman

runtime: update defs_windows_*.h files

New version of cmd/cgo from
https://golang.org/cl/9574043/
is used to regenerate these.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/9679046
parent fa4a9ff7
// c:\Users\Hector\Code\go\bin\godefs.exe defs.c
// Created by cgo -cdefs - DO NOT EDIT
// cgo -cdefs defs_windows.go
// MACHINE GENERATED - DO NOT EDIT.
// Constants
enum {
PROT_NONE = 0,
PROT_READ = 0x1,
PROT_WRITE = 0x2,
PROT_EXEC = 0x4,
MAP_ANON = 0x1,
MAP_PRIVATE = 0x2,
PROT_READ = 1,
PROT_WRITE = 2,
PROT_EXEC = 4,
MAP_ANON = 1,
MAP_PRIVATE = 2,
DUPLICATE_SAME_ACCESS = 0x2,
THREAD_PRIORITY_HIGHEST = 0x2,
SIGINT = 0x2,
CTRL_C_EVENT = 0,
CTRL_C_EVENT = 0x0,
CTRL_BREAK_EVENT = 0x1,
CONTEXT_CONTROL = 0x10001,
CONTEXT_FULL = 0x10007,
EXCEPTION_ACCESS_VIOLATION = 0xc0000005,
EXCEPTION_BREAKPOINT = 0x80000003,
EXCEPTION_FLT_DENORMAL_OPERAND = 0xc000008d,
......@@ -28,15 +32,19 @@ enum {
EXCEPTION_INT_OVERFLOW = 0xc0000095,
};
// Types
typedef struct SystemInfo SystemInfo;
typedef struct ExceptionRecord ExceptionRecord;
typedef struct FloatingSaveArea FloatingSaveArea;
typedef struct M128a M128a;
typedef struct Context Context;
#pragma pack on
typedef struct SystemInfo SystemInfo;
struct SystemInfo {
byte Pad_godefs_0[4];
byte anon0[4];
uint32 dwPageSize;
void *lpMinimumApplicationAddress;
void *lpMaximumApplicationAddress;
byte *lpMinimumApplicationAddress;
byte *lpMaximumApplicationAddress;
uint32 dwActiveProcessorMask;
uint32 dwNumberOfProcessors;
uint32 dwProcessorType;
......@@ -44,18 +52,14 @@ struct SystemInfo {
uint16 wProcessorLevel;
uint16 wProcessorRevision;
};
typedef struct ExceptionRecord ExceptionRecord;
struct ExceptionRecord {
uint32 ExceptionCode;
uint32 ExceptionFlags;
ExceptionRecord *ExceptionRecord;
void *ExceptionAddress;
byte *ExceptionAddress;
uint32 NumberParameters;
uint32 ExceptionInformation[15];
};
typedef struct FloatingSaveArea FloatingSaveArea;
struct FloatingSaveArea {
uint32 ControlWord;
uint32 StatusWord;
......@@ -67,8 +71,6 @@ struct FloatingSaveArea {
uint8 RegisterArea[80];
uint32 Cr0NpxState;
};
typedef struct Context Context;
struct Context {
uint32 ContextFlags;
uint32 Dr0;
......@@ -96,4 +98,6 @@ struct Context {
uint32 SegSs;
uint8 ExtendedRegisters[512];
};
#pragma pack off
// c:\go\bin\godefs.exe -f -m64 defs.c
// Created by cgo -cdefs - DO NOT EDIT
// cgo -cdefs defs_windows.go
// MACHINE GENERATED - DO NOT EDIT.
// Constants
enum {
PROT_NONE = 0,
PROT_READ = 0x1,
PROT_WRITE = 0x2,
PROT_EXEC = 0x4,
MAP_ANON = 0x1,
MAP_PRIVATE = 0x2,
PROT_READ = 1,
PROT_WRITE = 2,
PROT_EXEC = 4,
MAP_ANON = 1,
MAP_PRIVATE = 2,
DUPLICATE_SAME_ACCESS = 0x2,
THREAD_PRIORITY_HIGHEST = 0x2,
SIGINT = 0x2,
CTRL_C_EVENT = 0,
CTRL_C_EVENT = 0x0,
CTRL_BREAK_EVENT = 0x1,
CONTEXT_CONTROL = 0x100001,
CONTEXT_FULL = 0x10000b,
EXCEPTION_ACCESS_VIOLATION = 0xc0000005,
EXCEPTION_BREAKPOINT = 0x80000003,
EXCEPTION_FLT_DENORMAL_OPERAND = 0xc000008d,
......@@ -28,15 +32,19 @@ enum {
EXCEPTION_INT_OVERFLOW = 0xc0000095,
};
// Types
typedef struct SystemInfo SystemInfo;
typedef struct ExceptionRecord ExceptionRecord;
typedef struct FloatingSaveArea FloatingSaveArea;
typedef struct M128a M128a;
typedef struct Context Context;
#pragma pack on
typedef struct SystemInfo SystemInfo;
struct SystemInfo {
byte Pad_godefs_0[4];
byte anon0[4];
uint32 dwPageSize;
void *lpMinimumApplicationAddress;
void *lpMaximumApplicationAddress;
byte *lpMinimumApplicationAddress;
byte *lpMaximumApplicationAddress;
uint64 dwActiveProcessorMask;
uint32 dwNumberOfProcessors;
uint32 dwProcessorType;
......@@ -44,25 +52,19 @@ struct SystemInfo {
uint16 wProcessorLevel;
uint16 wProcessorRevision;
};
typedef struct ExceptionRecord ExceptionRecord;
struct ExceptionRecord {
uint32 ExceptionCode;
uint32 ExceptionFlags;
ExceptionRecord *ExceptionRecord;
void *ExceptionAddress;
byte *ExceptionAddress;
uint32 NumberParameters;
byte pad_godefs_0[4];
byte Pad_cgo_0[4];
uint64 ExceptionInformation[15];
};
typedef struct M128a M128a;
struct M128a {
uint64 Low;
int64 High;
};
typedef struct Context Context;
struct Context {
uint64 P1Home;
uint64 P2Home;
......@@ -102,7 +104,7 @@ struct Context {
uint64 R14;
uint64 R15;
uint64 Rip;
byte Pad_godefs_0[512];
byte anon0[512];
M128a VectorRegister[26];
uint64 VectorControl;
uint64 DebugControl;
......@@ -111,4 +113,6 @@ struct Context {
uint64 LastExceptionToRip;
uint64 LastExceptionFromRip;
};
#pragma pack off
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment