github.com/shijuvar/go@v0.0.0-20141209052335-e8f13700b70c/src/runtime/defs_nacl_amd64p32.go (about)

     1  package runtime
     2  
     3  const (
     4  	// These values are referred to in the source code
     5  	// but really don't matter. Even so, use the standard numbers.
     6  	_SIGSEGV = 11
     7  	_SIGPROF = 27
     8  )
     9  
    10  type timespec struct {
    11  	tv_sec  int64
    12  	tv_nsec int32
    13  }
    14  
    15  type excregs386 struct {
    16  	eax    uint32
    17  	ecx    uint32
    18  	edx    uint32
    19  	ebx    uint32
    20  	esp    uint32
    21  	ebp    uint32
    22  	esi    uint32
    23  	edi    uint32
    24  	eip    uint32
    25  	eflags uint32
    26  }
    27  
    28  type excregsamd64 struct {
    29  	rax    uint64
    30  	rcx    uint64
    31  	rdx    uint64
    32  	rbx    uint64
    33  	rsp    uint64
    34  	rbp    uint64
    35  	rsi    uint64
    36  	rdi    uint64
    37  	r8     uint64
    38  	r9     uint64
    39  	r10    uint64
    40  	r11    uint64
    41  	r12    uint64
    42  	r13    uint64
    43  	r14    uint64
    44  	r15    uint64
    45  	rip    uint64
    46  	rflags uint32
    47  }
    48  
    49  type exccontext struct {
    50  	size                    uint32
    51  	portable_context_offset uint32
    52  	portable_context_size   uint32
    53  	arch                    uint32
    54  	regs_size               uint32
    55  	reserved                [11]uint32
    56  	regs                    excregsamd64
    57  }
    58  
    59  type excportablecontext struct {
    60  	pc uint32
    61  	sp uint32
    62  	fp uint32
    63  }