* runtime/regs.c: patch from Bibo Mao for fixing the return
value on IA64 (bz #3404).
+2006-10-27 Thang Nguyen <thang.p.nguyen@intel.com>
+
+ * runtime/regs.c: patch from Bibo Mao for fixing the return
+ value on IA64 (bz #3404).
+
2006-10-24 Li Guanglei <guanglei@cn.ibm.com>
* runtime/lket/b2a/lket_b2a.[ch]: be sync with LKET hookid
{
struct ia64_stap_get_arbsp_param pa;
- if (regno < 32 || regno > 127)
+ if (regno >= 8 && regno <= 11)
+ return *(unsigned long *)(&pt_regs->r8 + regno - 8);
+ else if (regno < 32 || regno > 127)
return 0;
pa.ip = pt_regs->cr_iip;
{
struct ia64_stap_get_arbsp_param pa;
unsigned long rsc_save = 0;
-
- if (regno < 32 || regno > 127)
+ unsigned long *addr;
+
+ if (regno >= 8 && regno <= 11) {
+ addr =&pt_regs->r8;
+ addr += regno - 8;
+ *(addr) = value;
+ }
+ else if (regno < 32 || regno > 127)
return;
pa.ip = pt_regs->cr_iip;