...

Source file src/pkg/runtime/defs_nacl_arm.go

     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		_SIGQUIT = 3
     7		_SIGTRAP = 5
     8		_SIGSEGV = 11
     9		_SIGPROF = 27
    10	)
    11	
    12	type timespec struct {
    13		tv_sec  int64
    14		tv_nsec int32
    15	}
    16	
    17	//go:nosplit
    18	func (ts *timespec) setNsec(ns int64) {
    19		ts.tv_sec = int64(timediv(ns, 1e9, &ts.tv_nsec))
    20	}
    21	
    22	type excregsarm struct {
    23		r0   uint32
    24		r1   uint32
    25		r2   uint32
    26		r3   uint32
    27		r4   uint32
    28		r5   uint32
    29		r6   uint32
    30		r7   uint32
    31		r8   uint32
    32		r9   uint32 // the value reported here is undefined.
    33		r10  uint32
    34		r11  uint32
    35		r12  uint32
    36		sp   uint32 /* r13 */
    37		lr   uint32 /* r14 */
    38		pc   uint32 /* r15 */
    39		cpsr uint32
    40	}
    41	
    42	type exccontext struct {
    43		size                    uint32
    44		portable_context_offset uint32
    45		portable_context_size   uint32
    46		arch                    uint32
    47		regs_size               uint32
    48		reserved                [11]uint32
    49		regs                    excregsarm
    50	}
    51	
    52	type excportablecontext struct {
    53		pc uint32
    54		sp uint32
    55		fp uint32
    56	}
    57	

View as plain text