summaryrefslogtreecommitdiffstats
path: root/runtime/regs.h
diff options
context:
space:
mode:
authoraskeshav <askeshav>2005-10-28 22:49:28 +0000
committeraskeshav <askeshav>2005-10-28 22:49:28 +0000
commit1c9db4fdf66fe88a731319b99942872fa567d742 (patch)
tree33a86507a7fcf9a9c771cf9a1801c8f81c566cf8 /runtime/regs.h
parent063b69fe3f1109ec81b5e4c1f1333a442ccb3734 (diff)
downloadsystemtap-steved-1c9db4fdf66fe88a731319b99942872fa567d742.tar.gz
systemtap-steved-1c9db4fdf66fe88a731319b99942872fa567d742.tar.xz
systemtap-steved-1c9db4fdf66fe88a731319b99942872fa567d742.zip
IA64 Runtime support patches. With this in place
Systemtap should now be able to build on Ia64. Includes supports for - function probes, return probes, function parameter access and dumping stack backtrace. Added by Anil S Keshavamurthy <Anil.s.keshavamurthy@intel.com>
Diffstat (limited to 'runtime/regs.h')
-rw-r--r--runtime/regs.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/runtime/regs.h b/runtime/regs.h
index e634581c..0e759d1d 100644
--- a/runtime/regs.h
+++ b/runtime/regs.h
@@ -1,7 +1,16 @@
+/* common register includes used in multiple modules
+ * Copyright (C) 2005 Red Hat Inc.
+ * Copyright (C) 2005 Intel Corporation.
+ *
+ * This file is part of systemtap, and is free software. You can
+ * redistribute it and/or modify it under the terms of the GNU General
+ * Public License (GPL); either version 2, or (at your option) any
+ * later version.
+ */
+
#ifndef _REGS_H_ /* -*- linux-c -*- */
#define _REGS_H_
-/* common register includes used in multiple modules */
#ifdef __x86_64__
@@ -13,6 +22,10 @@
#define REG_IP(regs) regs->eip
#define REG_SP(regs) regs->esp
+#elif defined (__ia64__)
+#define REG_IP(regs) ((regs)->cr_iip +ia64_psr(regs)->ri)
+#define REG_SP(regs) ((regs)->r12)
+
#elif defined (__powerpc64__)
#define REG_IP(regs) regs->nip