...
Run Format

Source file src/runtime/defs_netbsd_amd64.go

Documentation: runtime

     1  // Copyright 2009 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // +build ignore
     6  
     7  /*
     8  Input to cgo.
     9  
    10  GOARCH=amd64 go tool cgo -cdefs defs_netbsd.go defs_netbsd_amd64.go >defs_netbsd_amd64.h
    11  */
    12  
    13  package runtime
    14  
    15  /*
    16  #include <sys/types.h>
    17  #include <machine/mcontext.h>
    18  */
    19  import "C"
    20  
    21  const (
    22  	REG_RDI    = C._REG_RDI
    23  	REG_RSI    = C._REG_RSI
    24  	REG_RDX    = C._REG_RDX
    25  	REG_RCX    = C._REG_RCX
    26  	REG_R8     = C._REG_R8
    27  	REG_R9     = C._REG_R9
    28  	REG_R10    = C._REG_R10
    29  	REG_R11    = C._REG_R11
    30  	REG_R12    = C._REG_R12
    31  	REG_R13    = C._REG_R13
    32  	REG_R14    = C._REG_R14
    33  	REG_R15    = C._REG_R15
    34  	REG_RBP    = C._REG_RBP
    35  	REG_RBX    = C._REG_RBX
    36  	REG_RAX    = C._REG_RAX
    37  	REG_GS     = C._REG_GS
    38  	REG_FS     = C._REG_FS
    39  	REG_ES     = C._REG_ES
    40  	REG_DS     = C._REG_DS
    41  	REG_TRAPNO = C._REG_TRAPNO
    42  	REG_ERR    = C._REG_ERR
    43  	REG_RIP    = C._REG_RIP
    44  	REG_CS     = C._REG_CS
    45  	REG_RFLAGS = C._REG_RFLAGS
    46  	REG_RSP    = C._REG_RSP
    47  	REG_SS     = C._REG_SS
    48  )
    49  

View as plain text