From 1c9db4fdf66fe88a731319b99942872fa567d742 Mon Sep 17 00:00:00 2001 From: askeshav Date: Fri, 28 Oct 2005 22:49:28 +0000 Subject: 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 --- runtime/regs.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'runtime/regs.h') 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 -- cgit