ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/sigsegv.cpp
(Generate patch)

Comparing BasiliskII/src/Unix/sigsegv.cpp (file contents):
Revision 1.41 by cebix, 2004-01-12T15:29:25Z vs.
Revision 1.42 by gbeauche, 2004-01-19T16:59:13Z

# Line 281 | Line 281 | static void powerpc_decode_instruction(i
281   #undef  SIGSEGV_FAULT_ADDRESS
282   #define SIGSEGV_FAULT_ADDRESS                   sip->si_ptr
283   #endif
284 + #if (defined(arm) || defined(__arm__))
285 + #include <asm/ucontext.h> /* use kernel structure, glibc may not be in sync */
286 + #define SIGSEGV_CONTEXT_REGS                    (((struct ucontext *)scp)->uc_mcontext)
287 + #define SIGSEGV_FAULT_INSTRUCTION               (SIGSEGV_CONTEXT_REGS.arm_pc)
288 + #endif
289   #endif
290   #endif
291  
# Line 320 | Line 325 | static void powerpc_decode_instruction(i
325   #define SIGSEGV_FAULT_ADDRESS                   get_fault_address(scp)
326   #define SIGSEGV_FAULT_INSTRUCTION               scp->sc_pc
327   #endif
328 + #if (defined(arm) || defined(__arm__))
329 + #define SIGSEGV_FAULT_HANDLER_ARGLIST   int sig, int r1, int r2, int r3, struct sigcontext sc
330 + #define SIGSEGV_FAULT_HANDLER_ARGLIST_1 struct sigcontext *scp
331 + #define SIGSEGV_FAULT_HANDLER_ARGS              &sc
332 + #define SIGSEGV_FAULT_ADDRESS                   scp->fault_address
333 + #define SIGSEGV_FAULT_INSTRUCTION               scp->arm_pc
334 + #endif
335   #endif
336  
337   // Irix 5 or 6 on MIPS

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines