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/branches/rt-transition/runtime/mach-dep/signal-sysdep.h
ViewVC logotype

Diff of /sml/branches/rt-transition/runtime/mach-dep/signal-sysdep.h

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

revision 3978, Mon Dec 8 14:10:40 2014 UTC revision 3979, Wed Dec 10 14:29:02 2014 UTC
# Line 290  Line 290 
290  #    define INT_OVFLW(s, c)      ((s) == SIGTRAP)       /* This needs to be refined */  #    define INT_OVFLW(s, c)      ((s) == SIGTRAP)       /* This needs to be refined */
291     /* info about siginfo_t is missing in the include files 4/17/2001 */     /* info about siginfo_t is missing in the include files 4/17/2001 */
292  #    define SIG_GetCode(info,scp) 0  #    define SIG_GetCode(info,scp) 0
 #    if defined(OPSYS_MACOS_10_1)  
        typedef void SigReturn_t;  
 #      define SIG_GetPC(scp)     ((scp)->sc_ir)  
 #      define SIG_SetPC(scp, addr) {(scp)->sc_ir = (int) addr;}  
      /* The offset of 17 is hardwired from reverse engineering the contents of  
       * sc_regs. 17 is the offset for register 15.  
       */  
 #      define SIG_ZeroLimitPtr(scp)     \  
        {  int * regs = (scp)->sc_regs;  \  
           regs[17] = 0;                 \  
        }  
 #    elif defined(OPSYS_MACOS_10_2)  
293       /* see /usr/include/mach/ppc/thread_status.h */       /* see /usr/include/mach/ppc/thread_status.h */
294  #      define SIG_GetPC(scp)            ((scp)->uc_mcontext->ss.srr0)  #      define SIG_GetPC(scp)            ((scp)->uc_mcontext->ss.srr0)
295  #      define SIG_SetPC(scp, addr)      {(scp)->uc_mcontext->ss.srr0 = (int) addr;}  #      define SIG_SetPC(scp, addr)      {(scp)->uc_mcontext->ss.srr0 = (int) addr;}
# Line 309  Line 297 
297        * sc_regs. 17 is the offset for register 15.        * sc_regs. 17 is the offset for register 15.
298        */        */
299  #      define SIG_ZeroLimitPtr(scp)     {  (scp)->uc_mcontext->ss.r15 = 0; }  #      define SIG_ZeroLimitPtr(scp)     {  (scp)->uc_mcontext->ss.r15 = 0; }
 #    endif  
300  #  elif defined(OPSYS_MKLINUX)  #  elif defined(OPSYS_MKLINUX)
301      /* RS6000, MkLinux */      /* RS6000, MkLinux */
302    

Legend:
Removed from v.3978  
changed lines
  Added in v.3979

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