]> sourceware.org Git - systemtap.git/commitdiff
2007-11-14 Zhaolei <zhaolei@cn.fujitsu.com>
authorzhaolei <zhaolei>
Wed, 14 Nov 2007 05:45:51 +0000 (05:45 +0000)
committerzhaolei <zhaolei>
Wed, 14 Nov 2007 05:45:51 +0000 (05:45 +0000)
From Cai Fei <caifei@cn.fujitsu.com>
* regs-ia64.c (ia64_fetch_register): Fix the bug of fetching
register 12 on IA64.

runtime/regs-ia64.c

index 50bf17d751f5ac108e0f92123e66e373e8dbbe57..2a5a1d1716cbd2fe9257109924af052241076b34 100644 (file)
@@ -39,6 +39,9 @@ static long ia64_fetch_register(int regno, struct pt_regs *pt_regs)
 {
        struct ia64_stap_get_arbsp_param pa;
 
+       if (regno == 12)
+               return pt_regs->r12;
+
        if (regno >= 8 && regno <= 11)
                return *(unsigned long *)(&pt_regs->r8 + regno - 8);
        else if (regno < 32 || regno > 127)
This page took 0.027001 seconds and 5 git commands to generate.