1
0
mirror of https://github.com/golang/go synced 2024-10-04 08:31:22 -06:00
go/src/pkg/runtime/defs_plan9_amd64.h
Akshat Kumar c74f3c4576 runtime: add support for panic/recover in Plan 9 note handler
This change also resolves some issues with note handling: we now make
sure that there is enough room at the bottom of every goroutine to
execute the note handler, and the `exitstatus' is no longer a global
entity, which resolves some race conditions.

R=rminnich, npe, rsc, ality
CC=golang-dev
https://golang.org/cl/6569068
2013-01-30 02:53:56 -08:00

35 lines
523 B
C

#define PAGESIZE 0x200000ULL
typedef struct Ureg Ureg;
struct Ureg {
uint64 ax;
uint64 bx;
uint64 cx;
uint64 dx;
uint64 si;
uint64 di;
uint64 bp;
uint64 r8;
uint64 r9;
uint64 r10;
uint64 r11;
uint64 r12;
uint64 r13;
uint64 r14;
uint64 r15;
uint16 ds;
uint16 es;
uint16 fs;
uint16 gs;
uint64 type;
uint64 error; /* error code (or zero) */
uint64 ip; /* pc */
uint64 cs; /* old context */
uint64 flags; /* old flags */
uint64 sp; /* sp */
uint64 ss; /* old stack segment */
};