1 // i386-signal.h - Catch runtime signals and turn them into exceptions.
3 /* Copyright (C) 1998, 1999 Cygnus Solutions
5 This file is part of libgcj.
7 This software is copyrighted work licensed under the terms of the
8 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
11 /* This technique should work for all i386 based Unices which conform
12 to iBCS2. This includes all versions of Linux more recent than
17 #define JAVA_SIGNAL_H 1
25 #define MAKE_THROW_FRAME(_dummy) \
27 void **_p = (void **)&_dummy; \
28 struct sigcontext_struct *_regs = (struct sigcontext_struct *)++_p; \
30 register unsigned long _ebp = _regs->ebp; \
31 register unsigned long _eip = _regs->eip; \
33 asm volatile ("mov %0, (%%ebp); mov %1, 4(%%ebp)" \
34 : : "r"(_ebp), "r"(_eip)); \
37 #endif /* JAVA_SIGNAL_H */