This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]