projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.0.43.46: Simplify some type tests to EQL comparisons
[sbcl.git]
/
src
/
runtime
/
hppa-linux-os.h
diff --git
a/src/runtime/hppa-linux-os.h
b/src/runtime/hppa-linux-os.h
index
97711b6
..
818d469
100644
(file)
--- a/
src/runtime/hppa-linux-os.h
+++ b/
src/runtime/hppa-linux-os.h
@@
-2,12
+2,20
@@
#define _HPPA_LINUX_OS_H
typedef struct ucontext os_context_t;
#define _HPPA_LINUX_OS_H
typedef struct ucontext os_context_t;
+/* FIXME: This will change if the parisc-linux people implement
+ 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);
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 */
#endif /* _HPPA_LINUX_OS_H */