diff options
Diffstat (limited to 'sys/i386/linux/linux_genassym.c')
-rw-r--r-- | sys/i386/linux/linux_genassym.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sys/i386/linux/linux_genassym.c b/sys/i386/linux/linux_genassym.c new file mode 100644 index 0000000..c522948 --- /dev/null +++ b/sys/i386/linux/linux_genassym.c @@ -0,0 +1,22 @@ +#include <stdio.h> +#include <sys/param.h> +#include <sys/buf.h> +#include <sys/proc.h> +#include <i386/linux/linux.h> + +extern int main __P((void)); + +int +main() +{ + struct linux_sigframe *linux_sigf = (struct linux_sigframe *)0; + struct linux_sigcontext *linux_sc = (struct linux_sigcontext *)0; + + printf("#define\tLINUX_SIGF_HANDLER %d\n", &linux_sigf->sf_handler); + printf("#define\tLINUX_SIGF_SC %d\n", &linux_sigf->sf_sc); + printf("#define\tLINUX_SC_FS %d\n", &linux_sc->sc_fs); + printf("#define\tLINUX_SC_GS %d\n", &linux_sc->sc_gs); + printf("#define\tLINUX_SC_EFLAGS %d\n", &linux_sc->sc_eflags); + + return (0); +} |