Skip to content
Snippets Groups Projects
Commit fc68eb3d authored by cshapiro's avatar cshapiro
Browse files

Restore macro definitions needed by Linux.

parent c624ee28
No related branches found
No related tags found
No related merge requests found
/* x86-lispregs.h -*- Mode: C; -*- /* x86-lispregs.h -*- Mode: C; -*-
* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/x86-lispregs.h,v 1.7 2007/07/15 09:24:57 cshapiro Exp $ * $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/x86-lispregs.h,v 1.8 2007/07/18 09:45:03 cshapiro Exp $
*/ */
#ifndef _X86_LISPREGS_H_ #ifndef _X86_LISPREGS_H_
...@@ -52,9 +52,12 @@ ...@@ -52,9 +52,12 @@
#elif defined(DARWIN) #elif defined(DARWIN)
#define SC_PC(sc) ((sc)->uc_mcontext->ss.eip) #define SC_PC(sc) ((sc)->uc_mcontext->ss.eip)
#define SC_SP(sc) SC_REG(sc, reg_ESP) #define SC_SP(sc) SC_REG(sc, reg_ESP)
#else #elif defined(__FreeBSD__)
#define SC_PC(sc) ((sc)->uc_mcontext.mc_eip) #define SC_PC(sc) ((sc)->uc_mcontext.mc_eip)
#define SC_SP(sc) SC_REG(sc, reg_ESP) #define SC_SP(sc) SC_REG(sc, reg_ESP)
#elif defined(__linux__)
#define SC_PC(sc) ((sc)->eip)
#define SC_SP(sc) SC_REG(sc, reg_ESP)
#endif #endif
#endif /* _X86_LISPREGS_H_ */ #endif /* _X86_LISPREGS_H_ */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment