RE: [PATCH] save parameter registers and restore them for jprobe handling

From: Zhang, Yanmin <yanmin.zhang_at_intel.com>
Date: 2005-12-01 16:19:02
>>-----Original Message-----
>>From: linux-ia64-owner@vger.kernel.org
>>[mailto:linux-ia64-owner@vger.kernel.org] On Behalf Of Keith Owens
>>Sent: 2005121 10:37
>>To: Zhang, Yanmin
>>Cc: linux-ia64@vger.kernel.org; Keshavamurthy, Anil S;
>>systemtap@sources.redhat.com
>>Subject: Re: [PATCH] save parameter registers and restore them for jprobe
>>handling
>>
>>On Thu, 1 Dec 2005 10:28:09 +0800,
>>"Zhang, Yanmin" <yanmin.zhang@intel.com> wrote:
>>>Content-Transfer-Encoding: base64
>>
>>Why base64 encoding for the patch?
>>
>>+/*Invalidate stacked registers outside the current frame*/
>>+#define invalidate_stacked_regs() { 				\
>>+	unsigned long rsc_save = 0;				\
>>+	asm volatile("mov %0=ar.rsc;;\n\t"			\
>>+		"mov ar.rsc=0;;\n\t"				\
>>+		"{\n\tloadrs;;\n\t\n\t\n\t}\n\t"		\
>>+		"mov ar.rsc=%1\n\t"				\
>>+		:"=r" (rsc_save):"r" (rsc_save):"memory");	\
>>+	}
>>+
>>
>>We try to avoid inline asm in the .c files, it makes it harder to
>>compile the kernel with Intel compilers.

How about the new patch? I add a new function in arch/ia64/kernel/entry.S.


-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Received on Thu Dec 01 16:20:01 2005

This archive was generated by hypermail 2.1.8 : 2005-12-01 16:20:09 EST