7936339495
and associated user-level signal trampoline glue. Without this patch, an SA_SIGINFO style handler can be installed by a linux app, but if the handler accesses its sip argument, it will get a garbage pointer and likely segfault. We currently supply a valid pointer, but its contents are mainly garbage. Filling this in properly is future work. This is the second of 3 commits that will get IBM's JDK 1.3 working with FreeBSD ...
18 lines
530 B
C
18 lines
530 B
C
/* $FreeBSD$ */
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <sys/param.h>
|
|
#include <sys/assym.h>
|
|
|
|
#include <i386/linux/linux.h>
|
|
|
|
ASSYM(LINUX_SIGF_HANDLER, offsetof(struct linux_sigframe, sf_handler));
|
|
ASSYM(LINUX_SIGF_SC, offsetof(struct linux_sigframe, sf_sc));
|
|
ASSYM(LINUX_SC_GS, offsetof(struct linux_sigcontext, sc_gs));
|
|
ASSYM(LINUX_SC_EFLAGS, offsetof(struct linux_sigcontext, sc_eflags));
|
|
ASSYM(LINUX_RT_SIGF_HANDLER, offsetof(struct linux_rt_sigframe, sf_handler));
|
|
ASSYM(LINUX_RT_SIGF_UC, offsetof(struct linux_rt_sigframe, sf_sc));
|
|
|
|
|