Changeset 1391 for branches/GNU/src/gcc/libjava/include/i386-signal.h
- Timestamp:
- Apr 27, 2004, 8:39:34 PM (22 years ago)
- Location:
- branches/GNU/src/gcc
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
libjava/include/i386-signal.h (modified) (2 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gcc
- Property svn:ignore
-
old new 26 26 configure.vr 27 27 configure.vrs 28 28 29 Makefile 29 dir.info30 30 lost+found 31 31 update.out
-
- Property svn:ignore
-
branches/GNU/src/gcc/libjava/include/i386-signal.h
-
Property cvs2svn:cvs-rev
changed from
1.1to1.1.1.2
r1390 r1391 109 109 }; 110 110 111 #define INIT_SEGV \ 112 do \ 113 { \ 114 nullp = new java::lang::NullPointerException (); \ 111 #define RESTORE(name, syscall) RESTORE2 (name, syscall) 112 # define RESTORE2(name, syscall) \ 113 asm \ 114 ( \ 115 ".text\n" \ 116 ".byte 0 # Yes, this really is necessary\n" \ 117 " .align 8\n" \ 118 "__" #name ":\n" \ 119 " popl %eax\n" \ 120 " movl $" #syscall ", %eax\n" \ 121 " int $0x80" \ 122 ); 123 124 RESTORE (restore, __NR_sigreturn) 125 static void restore (void) asm ("__restore"); 126 127 #define INIT_SEGV \ 128 do \ 129 { \ 130 nullp = new java::lang::NullPointerException (); \ 115 131 struct old_i386_kernel_sigaction kact; \ 116 132 kact.k_sa_handler = catch_segv; \ 117 133 kact.k_sa_mask = 0; \ 118 kact.k_sa_flags = 0; \ 134 kact.k_sa_flags = 0x4000000; \ 135 kact.sa_restorer = restore; \ 119 136 syscall (SYS_sigaction, SIGSEGV, &kact, NULL); \ 120 } \137 } \ 121 138 while (0) 122 139 123 140 #define INIT_FPE \ 124 141 do \ 125 { \126 arithexception = new java::lang::ArithmeticException \142 { \ 143 arithexception = new java::lang::ArithmeticException \ 127 144 (JvNewStringLatin1 ("/ by zero")); \ 128 145 struct old_i386_kernel_sigaction kact; \ 129 146 kact.k_sa_handler = catch_fpe; \ 130 147 kact.k_sa_mask = 0; \ 131 kact.k_sa_flags = 0; \ 148 kact.k_sa_flags = 0x4000000; \ 149 kact.sa_restorer = restore; \ 132 150 syscall (SYS_sigaction, SIGFPE, &kact, NULL); \ 133 151 } \ … … 148 166 * Also, there is at the present time no unwind info in the 149 167 * linuxthreads library's signal handlers and so we can't unwind 150 * through them anyway. 151 152 * Finally, the code that glibc uses to return from a signal handler 153 * is subject to change. */ 168 * through them anyway. */ 154 169 155 170 #endif /* JAVA_SIGNAL_H */ -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.
