mirror of
https://github.com/golang/go
synced 2024-10-07 13:31:26 -06:00
7c8280c9ef
See golang.org/s/go13nacl for design overview. This CL is the mostly mechanical changes from rsc's Go 1.2 based NaCl branch, specifically 39cb35750369 to 500771b477cf from https://code.google.com/r/rsc-go13nacl. This CL does not include working NaCl support, there are probably two or three more large merges to come. CL 15750044 is not included as it involves more invasive changes to the linker which will need to be merged separately. The exact change lists included are 15050047: syscall: support for Native Client 15360044: syscall: unzip implementation for Native Client 15370044: syscall: Native Client SRPC implementation 15400047: cmd/dist, cmd/go, go/build, test: support for Native Client 15410048: runtime: support for Native Client 15410049: syscall: file descriptor table for Native Client 15410050: syscall: in-memory file system for Native Client 15440048: all: update +build lines for Native Client port 15540045: cmd/6g, cmd/8g, cmd/gc: support for Native Client 15570045: os: support for Native Client 15680044: crypto/..., hash/crc32, reflect, sync/atomic: support for amd64p32 15690044: net: support for Native Client 15690048: runtime: support for fake time like on Go Playground 15690051: build: disable various tests on Native Client LGTM=rsc R=rsc CC=golang-codereviews https://golang.org/cl/68150047
32 lines
1.2 KiB
C
32 lines
1.2 KiB
C
// Copyright 2013 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
#define SIG_REGS(ctxt) (((ExcContext*)(ctxt))->regs64)
|
|
|
|
#define SIG_RAX(info, ctxt) (SIG_REGS(ctxt).rax)
|
|
#define SIG_RBX(info, ctxt) (SIG_REGS(ctxt).rbx)
|
|
#define SIG_RCX(info, ctxt) (SIG_REGS(ctxt).rcx)
|
|
#define SIG_RDX(info, ctxt) (SIG_REGS(ctxt).rdx)
|
|
#define SIG_RDI(info, ctxt) (SIG_REGS(ctxt).rdi)
|
|
#define SIG_RSI(info, ctxt) (SIG_REGS(ctxt).rsi)
|
|
#define SIG_RBP(info, ctxt) (SIG_REGS(ctxt).rbp)
|
|
#define SIG_RSP(info, ctxt) (SIG_REGS(ctxt).rsp)
|
|
#define SIG_R8(info, ctxt) (SIG_REGS(ctxt).r8)
|
|
#define SIG_R9(info, ctxt) (SIG_REGS(ctxt).r9)
|
|
#define SIG_R10(info, ctxt) (SIG_REGS(ctxt).r10)
|
|
#define SIG_R11(info, ctxt) (SIG_REGS(ctxt).r11)
|
|
#define SIG_R12(info, ctxt) (SIG_REGS(ctxt).r12)
|
|
#define SIG_R13(info, ctxt) (SIG_REGS(ctxt).r13)
|
|
#define SIG_R14(info, ctxt) (SIG_REGS(ctxt).r14)
|
|
#define SIG_R15(info, ctxt) (SIG_REGS(ctxt).r15)
|
|
#define SIG_RIP(info, ctxt) (SIG_REGS(ctxt).rip)
|
|
#define SIG_RFLAGS(info, ctxt) (SIG_REGS(ctxt).rflags)
|
|
|
|
#define SIG_CS(info, ctxt) (~0)
|
|
#define SIG_FS(info, ctxt) (~0)
|
|
#define SIG_GS(info, ctxt) (~0)
|
|
|
|
#define SIG_CODE0(info, ctxt) (~0)
|
|
#define SIG_CODE1(info, ctxt) (0)
|