Skip to content
lispregs.h 1.04 KiB
Newer Older
Raymond Toy's avatar
Raymond Toy committed
/*

 This code was written as part of the CMU Common Lisp project at
 Carnegie Mellon University, and has been placed in the public domain.

*/

#ifndef _LISPREGS_H_
#define _LISPREGS_H_
wlott's avatar
wlott committed

hallgren's avatar
hallgren committed
#if defined(mips) || defined(irix)
wlott's avatar
wlott committed
#include "mips-lispregs.h"
#endif

#ifdef sparc
#include "sparc-lispregs.h"
#endif

#ifdef ibmrt
#include "rt-lispregs.h"
#endif

#ifdef i386
#include "x86-lispregs.h"
#endif

cwang's avatar
cwang committed
#ifdef __x86_64
#include "amd64-lispregs.h"
#endif

wlott's avatar
wlott committed
#ifdef parisc
#include "hppa-lispregs.h"
#endif

hallgren's avatar
hallgren committed
#ifdef alpha
#include "alpha-lispregs.h"
#endif

#ifdef ppc
#include "ppc-lispregs.h"
#endif

cwang's avatar
cwang committed
/* This matches the definition of sc-offset in code/debug-info.lisp */
#define SC_OFFSET(sc,offset) (((offset) << 5) | (sc))

rtoy's avatar
rtoy committed
/*
 * Macros to compute the SC_OFFSET value.  See read-var-integer and
 * sc-offset and friends in debug-info.lisp
 */
#define	SC_OFFSET_HI(sc, regnum)	((SC_OFFSET(sc,regnum)) >> 8)
#define	SC_OFFSET_LO(sc, regnum)	((SC_OFFSET(sc,regnum)) & 0xff)



wlott's avatar
wlott committed
#ifndef LANGUAGE_ASSEMBLY
extern char *lisp_register_names[];
#endif