Add support for NetBSD-style gregs on x86
authorKamil Rytarowski <n54@gmx.com>
Sun, 31 Jan 2016 10:24:44 +0000 (11:24 +0100)
committerKamil Rytarowski <n54@gmx.com>
Tue, 2 Feb 2016 02:26:06 +0000 (03:26 +0100)
commitf4b079d04633c24b38e364c3592daf3b8c4ed69a
treeecc87159073e405bcf3ffc3d4a8dcffcddb27cc5
parent7e1facef368a74a7a0c46e359378beae90af462b
Add support for NetBSD-style gregs on x86

Floating point regs will be added later.

typedef struct {
        __gregset_t     __gregs;
        __greg_t        _mc_tlsbase;
        __fpregset_t    __fpregs;
} mcontext_t;

 --- /usr/include/amd64/mcontext.h
     (linked to machine/mcontext.h on NetBSD/amd64)

typedef struct {
        __gregset_t     __gregs;
        __fpregset_t    __fpregs;
        __greg_t        _mc_tlsbase;
} mcontext_t;

 --- /usr/include/i386/mcontext.h
     (linked to machine/mcontext.h on NetBSD/i386)
src/pal/src/config.h.in
src/pal/src/configure.cmake
src/pal/src/include/pal/context.h