summaryrefslogtreecommitdiff
path: root/libjava/sysdep/pa/descriptor-pa64-hpux.h
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/sysdep/pa/descriptor-pa64-hpux.h')
-rw-r--r--libjava/sysdep/pa/descriptor-pa64-hpux.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libjava/sysdep/pa/descriptor-pa64-hpux.h b/libjava/sysdep/pa/descriptor-pa64-hpux.h
new file mode 100644
index 000000000..bc6af6b87
--- /dev/null
+++ b/libjava/sysdep/pa/descriptor-pa64-hpux.h
@@ -0,0 +1,6 @@
+// Given a function pointer, return the code address.
+// If the plabel bit is set, mask it off and return the code from the
+// first word of the function descriptor. Otherwise, the function
+// pointer is the code address.
+
+#define UNWRAP_FUNCTION_DESCRIPTOR(X) *(void **)((unsigned long) (X) + 16)