Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Diff of /sml/trunk/src/runtime/mach-dep/signal-sysdep.h
ViewVC logotype

Diff of /sml/trunk/src/runtime/mach-dep/signal-sysdep.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 651, Thu Jun 1 18:34:03 2000 UTC revision 693, Thu Jul 27 15:49:07 2000 UTC
# Line 263  Line 263 
263       typedef void SigReturn_t;       typedef void SigReturn_t;
264    
265  #    define SIG_Flags           0  #    define SIG_Flags           0
266    #  elif (defined(TARGET_PPC) && defined(OPSYS_LINUX))
267        /* PPC, Linux */
268    
269    #    include <signal.h>
270         typedef struct sigcontext_struct SigContext_t;
271    
272    #    define SIG_FAULT1          SIGTRAP
273    
274    #    define INT_DIVZERO(s, c)           (((s) == SIGTRAP) && (((c) == 0) || ((c) == 0x2000) || ((c) == 0x4000)))
275    #    define INT_OVFLW(s, c)             (((s) == SIGTRAP) && (((c) == 0) || ((c) == 0x2000) || ((c) == 0x4000)))
276    #    define SIG_GetPC(scp)              ((scp)->regs->nip)
277    #    define SIG_SetPC(scp, addr)        { (scp)->regs->nip = (long)(addr); }
278    #    define SIG_ZeroLimitPtr(scp)       { ((scp)->regs->gpr[15] = 0); } /* limitptr = 15 (see src/runtime/mach-dep/PPC.prim.asm) */
279    #    define SIG_GetCode(info,scp)       ((scp)->regs->gpr[PT_FPSCR])
280    #    define SIG_ResetFPE(scp)           { (scp)->regs->gpr[PT_FPSCR] = 0x0; }
281         typedef void SigReturn_t;
282    
283    #    define SIG_Flags           0
284    
285    
286  #  endif /* HOST_RS6000/HOST_PPC */  #  endif /* HOST_RS6000/HOST_PPC */
287    
# Line 346  Line 365 
365  extern Addr_t *ML_X86Frame;   /* used to get at limitptr */  extern Addr_t *ML_X86Frame;   /* used to get at limitptr */
366  #  define SIG_InitFPE()    FPEEnable()  #  define SIG_InitFPE()    FPEEnable()
367    
368  #  if defined(OPSYS_LINUX)  #  if (defined(TARGET_X86) && defined(OPSYS_LINUX))
369      /** X86, LINUX **/      /** X86, LINUX **/
370  #    if (!defined(_SIGCONTEXT_H) && !defined(sigcontext_struct))  #    if (!defined(_SIGCONTEXT_H) && !defined(sigcontext_struct))
371        /* older versions of Linux don't define this in <signal.h> */        /* older versions of Linux don't define this in <signal.h> */

Legend:
Removed from v.651  
changed lines
  Added in v.693

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0