authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-07-31 11:20:49-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-07-31 11:20:49-07:00
log62deaaacd5441f45f05d946303e75c4937cf06b5
tree82b2208103518dacc1d2840fac38e88043ab4edb
parent963b2a2a4da116ef3b9f089442ada9c99eb44324

Revert "std: mcontext layout for x86 and fixing few x86_64 fields types for"

This reverts commit 9691cded95afa53f17bfc50edc371d4fe673b56a.

1 files changed, 5 insertions(+), 37 deletions(-)

lib/std/c/freebsd.zig+5-37
...@@ -1391,47 +1391,15 @@ pub const mcontext_t = switch (builtin.cpu.arch) {...@@ -1391,47 +1391,15 @@ pub const mcontext_t = switch (builtin.cpu.arch) {
1391 rflags: u64,1391 rflags: u64,
1392 rsp: u64,1392 rsp: u64,
1393 ss: u64,1393 ss: u64,
1394 len: c_long,1394 len: u64,
1395 fpformat: c_long,1395 fpformat: u64,
1396 ownedfp: c_long,1396 ownedfp: u64,
1397 fpstate: [64]c_long align(16),1397 fpstate: [64]u64 align(16),
1398 fsbase: u64,1398 fsbase: u64,
1399 gsbase: u64,1399 gsbase: u64,
1400 xfpustate: u64,1400 xfpustate: u64,
1401 xfpustate_len: u64,1401 xfpustate_len: u64,
1402 spare: [4]c_long,1402 spare: [4]u64,
1403 },
1404 .x86 => extern struct {
1405 onstack: u32,
1406 gs: u32,
1407 fs: u32,
1408 es: u32,
1409 ds: u32,
1410 edi: u32,
1411 esi: u32,
1412 ebp: u32,
1413 isp: u32,
1414 ebx: u32,
1415 edx: u32,
1416 ecx: u32,
1417 eax: u32,
1418 trapno: u32,
1419 err: u32,
1420 eip: u32,
1421 cs: u32,
1422 eflags: u32,
1423 esp: u32,
1424 ss: u32,
1425 len: c_int,
1426 fpformat: c_int,
1427 ownedfp: c_int,
1428 flags: u32,
1429 fpstate: [128]c_int align(16),
1430 fsbase: u32,
1431 gsbase: u32,
1432 xpustate: u32,
1433 xpustate_len: u32,
1434 spare2: [4]c_int,
1435 },1403 },
1436 .aarch64 => extern struct {1404 .aarch64 => extern struct {
1437 gpregs: extern struct {1405 gpregs: extern struct {