Skip to content

Commit

Permalink
Auto merge of #2930 - devnexen:solarish_regset_amd64, r=JohnTitor
Browse files Browse the repository at this point in the history
solarish amd64 regset constants
  • Loading branch information
bors committed Oct 6, 2022
2 parents 14f31db + 9178f55 commit 2dfe1ab
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/unix/solarish/x86_64.rs
Expand Up @@ -157,3 +157,34 @@ cfg_if! {

}
}

// sys/regset.h

pub const REG_GSBASE: ::c_int = 27;
pub const REG_FSBASE: ::c_int = 26;
pub const REG_DS: ::c_int = 25;
pub const REG_ES: ::c_int = 24;
pub const REG_GS: ::c_int = 23;
pub const REG_FS: ::c_int = 22;
pub const REG_SS: ::c_int = 21;
pub const REG_RSP: ::c_int = 20;
pub const REG_RFL: ::c_int = 19;
pub const REG_CS: ::c_int = 18;
pub const REG_RIP: ::c_int = 17;
pub const REG_ERR: ::c_int = 16;
pub const REG_TRAPNO: ::c_int = 15;
pub const REG_RAX: ::c_int = 14;
pub const REG_RCX: ::c_int = 13;
pub const REG_RDX: ::c_int = 12;
pub const REG_RBX: ::c_int = 11;
pub const REG_RBP: ::c_int = 10;
pub const REG_RSI: ::c_int = 9;
pub const REG_RDI: ::c_int = 8;
pub const REG_R8: ::c_int = 7;
pub const REG_R9: ::c_int = 6;
pub const REG_R10: ::c_int = 5;
pub const REG_R11: ::c_int = 4;
pub const REG_R12: ::c_int = 3;
pub const REG_R13: ::c_int = 2;
pub const REG_R14: ::c_int = 1;
pub const REG_R15: ::c_int = 0;

0 comments on commit 2dfe1ab

Please sign in to comment.