Skip to content

Commit ffad7fd

Browse files
committed
netbsd mcontext x86_64 constants.
1 parent 666ad57 commit ffad7fd

File tree

1 file changed

+27
-0
lines changed
  • src/unix/bsd/netbsdlike/netbsd

1 file changed

+27
-0
lines changed

src/unix/bsd/netbsdlike/netbsd/mod.rs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2271,6 +2271,33 @@ pub const LSZOMB: ::c_int = 5;
22712271
pub const LSONPROC: ::c_int = 7;
22722272
pub const LSSUSPENDED: ::c_int = 8;
22732273

2274+
pub const _REG_RDI: ::c_int = 0;
2275+
pub const _REG_RSI: ::c_int = 1;
2276+
pub const _REG_RDX: ::c_int = 2;
2277+
pub const _REG_RCX: ::c_int = 3;
2278+
pub const _REG_R8: ::c_int = 4;
2279+
pub const _REG_R9: ::c_int = 5;
2280+
pub const _REG_R10: ::c_int = 6;
2281+
pub const _REG_R11: ::c_int = 7;
2282+
pub const _REG_R12: ::c_int = 8;
2283+
pub const _REG_R13: ::c_int = 9;
2284+
pub const _REG_R14: ::c_int = 10;
2285+
pub const _REG_R15: ::c_int = 11;
2286+
pub const _REG_RBP: ::c_int = 12;
2287+
pub const _REG_RBX: ::c_int = 13;
2288+
pub const _REG_RAX: ::c_int = 14;
2289+
pub const _REG_GS: ::c_int = 15;
2290+
pub const _REG_FS: ::c_int = 16;
2291+
pub const _REG_ES: ::c_int = 17;
2292+
pub const _REG_DS: ::c_int = 18;
2293+
pub const _REG_TRAPNO: ::c_int = 19;
2294+
pub const _REG_ERR: ::c_int = 20;
2295+
pub const _REG_RIP: ::c_int = 21;
2296+
pub const _REG_CS: ::c_int = 22;
2297+
pub const _REG_RFLAGS: ::c_int = 23;
2298+
pub const _REG_RSP: ::c_int = 24;
2299+
pub const _REG_SS: ::c_int = 25;
2300+
22742301
const_fn! {
22752302
{const} fn _ALIGN(p: usize) -> usize {
22762303
(p + _ALIGNBYTES) & !_ALIGNBYTES

0 commit comments

Comments
 (0)