X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fhppa-linux-os.h;h=818d469d11aa72648fe46c98f2c6a16ff8e87c5b;hb=35ab27e7aab71c94aa6be12da15603c7fd87fca8;hp=f0c23ac7294c645ad8512f6d81f7679d8e4f70a0;hpb=4ae1b794a5d6a90794468cf8017f5307f2c30dfe;p=sbcl.git diff --git a/src/runtime/hppa-linux-os.h b/src/runtime/hppa-linux-os.h index f0c23ac..818d469 100644 --- a/src/runtime/hppa-linux-os.h +++ b/src/runtime/hppa-linux-os.h @@ -6,11 +6,16 @@ typedef struct ucontext os_context_t; wide-sigcontext for 32-bit kernels */ typedef unsigned long os_context_register_t; -static inline os_context_t *arch_os_get_context(void **void_context) { +static inline os_context_t *arch_os_get_context(void **void_context) +{ return (os_context_t *) *void_context; } unsigned long os_context_fp_control(os_context_t *context); void os_restore_fp_control(os_context_t *context); +#define SC_REG(sc, n) (((unsigned long *)((sc)->sc_ap))[n]) +#define SC_PC(sc) ((sc)->sc_pcoqh) +#define SC_NPC(sc) ((sc)->sc_pcoqt) + #endif /* _HPPA_LINUX_OS_H */