authorgravatar for michael.dusan@gmail.comMichael Dusan <michael.dusan@gmail.com> 2023-08-15 17:20:04-04:00
committergravatar for michael.dusan@gmail.comMichael Dusan <michael.dusan@gmail.com> 2023-08-15 17:20:04-04:00
log25542c3443c616d0ef546e424619cf88553d9b59
tree216f2c89a6306642bca9e6a2268d69e7414e61e2
parentfdce18cd30a5f20688e582386b802ed8e9a46312
signaturelock-open Commit is signed but in an unrecognized format.

netbsd: std.c.REG: populate indexes for x86_64


1 files changed, 23 insertions(+), 0 deletions(-)

lib/std/c/netbsd.zig+23
......@@ -1227,9 +1227,32 @@ pub const REG = switch (builtin.cpu.arch) {
12271227 pub const PC = 15;
12281228 },
12291229 .x86_64 => struct {
1230 pub const RDI = 0;
1231 pub const RSI = 1;
1232 pub const RDX = 2;
1233 pub const RCX = 3;
1234 pub const R8 = 4;
1235 pub const R9 = 5;
1236 pub const R10 = 6;
1237 pub const R11 = 7;
1238 pub const R12 = 8;
1239 pub const R13 = 9;
1240 pub const R14 = 10;
1241 pub const R15 = 11;
12301242 pub const RBP = 12;
1243 pub const RBX = 13;
1244 pub const RAX = 14;
1245 pub const GS = 15;
1246 pub const FS = 16;
1247 pub const ES = 17;
1248 pub const DS = 18;
1249 pub const TRAPNO = 19;
1250 pub const ERR = 20;
12311251 pub const RIP = 21;
1252 pub const CS = 22;
1253 pub const RFLAGS = 23;
12321254 pub const RSP = 24;
1255 pub const SS = 25;
12331256 },
12341257 else => struct {},
12351258};