/[cmucl]/src/lisp/OpenBSD-os.c
ViewVC logotype

Diff of /src/lisp/OpenBSD-os.c

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

revision 1.2 by rtoy, Thu Sep 15 18:26:50 2005 UTC revision 1.3 by cshapiro, Tue Nov 7 11:24:12 2006 UTC
# Line 49  os_init(void) Line 49  os_init(void)
49      os_vm_page_size = OS_VM_DEFAULT_PAGESIZE;      os_vm_page_size = OS_VM_DEFAULT_PAGESIZE;
50  }  }
51    
52  int  int *
53  sc_reg(struct sigcontext *c, int offset)  sc_reg(struct sigcontext *c, int offset)
54  {  {
55      switch (offset) {      switch (offset) {
56        case 0:        case 0:
57            return c->sc_eax;            return &c->sc_eax;
58        case 2:        case 2:
59            return c->sc_ecx;            return &c->sc_ecx;
60        case 4:        case 4:
61            return c->sc_edx;            return &c->sc_edx;
62        case 6:        case 6:
63            return c->sc_ebx;            return &c->sc_ebx;
64        case 8:        case 8:
65            return c->sc_esp;            return &c->sc_esp;
66        case 10:        case 10:
67            return c->sc_ebp;            return &c->sc_ebp;
68        case 12:        case 12:
69            return c->sc_esi;            return &c->sc_esi;
70        case 14:        case 14:
71            return c->sc_edi;            return &c->sc_edi;
72      }      }
73      return 0;      return (int *) 0;
74  }  }
75    
76  void  void

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.5