@@ -157,3 +157,34 @@ cfg_if! {
157157
158158 }
159159}
160+
161+ // sys/regset.h
162+
163+ pub const REG_GSBASE : :: c_int = 27 ;
164+ pub const REG_FSBASE : :: c_int = 26 ;
165+ pub const REG_DS : :: c_int = 25 ;
166+ pub const REG_ES : :: c_int = 24 ;
167+ pub const REG_GS : :: c_int = 23 ;
168+ pub const REG_FS : :: c_int = 22 ;
169+ pub const REG_SS : :: c_int = 21 ;
170+ pub const REG_RSP : :: c_int = 20 ;
171+ pub const REG_RFL : :: c_int = 19 ;
172+ pub const REG_CS : :: c_int = 18 ;
173+ pub const REG_RIP : :: c_int = 17 ;
174+ pub const REG_ERR : :: c_int = 16 ;
175+ pub const REG_TRAPNO : :: c_int = 15 ;
176+ pub const REG_RAX : :: c_int = 14 ;
177+ pub const REG_RCX : :: c_int = 13 ;
178+ pub const REG_RDX : :: c_int = 12 ;
179+ pub const REG_RBX : :: c_int = 11 ;
180+ pub const REG_RBP : :: c_int = 10 ;
181+ pub const REG_RSI : :: c_int = 9 ;
182+ pub const REG_RDI : :: c_int = 8 ;
183+ pub const REG_R8 : :: c_int = 7 ;
184+ pub const REG_R9 : :: c_int = 6 ;
185+ pub const REG_R10 : :: c_int = 5 ;
186+ pub const REG_R11 : :: c_int = 4 ;
187+ pub const REG_R12 : :: c_int = 3 ;
188+ pub const REG_R13 : :: c_int = 2 ;
189+ pub const REG_R14 : :: c_int = 1 ;
190+ pub const REG_R15 : :: c_int = 0 ;
0 commit comments