What's this gregset_t gregs thing

From: blubee blubeeme <gurenchan_at_gmail.com>
Date: Mon, 20 Aug 2018 08:33:04 +0800
Linux has gregset_t gregs;
https://github.com/lattera/glibc/blob/master/sysdeps/unix/sysv/linux/x86/sys/ucontext.h

Defined above, I also see it in the RISC-V glibc stuff as well.

FreeBSD doesn't seem to have this field defined, I see FreeBSD uses
/usr/include/x86/ucontext.h

but there's no gregs;

If I wanted to return mcontext.gregs

How could I implement that on FreeBSD?

Best,
Owen
Received on Sun Aug 19 2018 - 22:33:16 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:17 UTC