summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-10-06 15:08:52 +0000
committerbors <bors@rust-lang.org>2022-10-06 15:08:52 +0000
commit2dfe1ab9eed52d0f46983414028fe5ec49e0d5e0 (patch)
treea8a3b5fc1fb43781a1dc30aa6fb555541590127c
parent14f31db9387fde013043d408c0b0d915825055fd (diff)
parent9178f5552a365ceee3fb855142bef846fb0a1083 (diff)
downloadrust-libc-2dfe1ab9eed52d0f46983414028fe5ec49e0d5e0.tar.gz
Auto merge of #2930 - devnexen:solarish_regset_amd64, r=JohnTitor
solarish amd64 regset constants
-rw-r--r--src/unix/solarish/x86_64.rs31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/unix/solarish/x86_64.rs b/src/unix/solarish/x86_64.rs
index 5f75bdb796..bca552f378 100644
--- a/src/unix/solarish/x86_64.rs
+++ b/src/unix/solarish/x86_64.rs
@@ -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;