Diff of /src/runtime/x86-arch.c [4af254] .. [3d19a6]  Maximize  Restore

  Switch to unified view

a/src/runtime/x86-arch.c b/src/runtime/x86-arch.c
...
...
53
     * we need to do this nasty absolute index magic number thing
53
     * we need to do this nasty absolute index magic number thing
54
     * instead. */
54
     * instead. */
55
    return &context->uc_mcontext.gregs[16];
55
    return &context->uc_mcontext.gregs[16];
56
#elif defined __FreeBSD__
56
#elif defined __FreeBSD__
57
    return &context->uc_mcontext.mc_eflags;
57
    return &context->uc_mcontext.mc_eflags;
58
#elif defined __OpenBSD__
58
#elif defined __OpenBSD__ || defined __NetBSD__
59
    return &context->sc_eflags;
59
    return &context->sc_eflags;
60
#elif defined __NetBSD__
61
    return &(context->uc_mcontext.__gregs[_REG_EFL]);
60
#else
62
#else
61
#error unsupported OS
63
#error unsupported OS
62
#endif
64
#endif
63
}
65
}
64

66


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks