Re: [PATCH]IA64 trap code 16 bytes atomic copy on montecito, take 2

From: Keith Owens <kaos_at_sgi.com>
Date: 2006-11-02 18:22:58
Keith Owens (on Thu, 02 Nov 2006 18:17:57 +1100) wrote:
>This should do the job.  No prologue or alloc because it is a leaf
>function, which means no in0/in1, use r32/r33 instead.
>
>extern ld16_st16(src, dest);
>
>ENTRY(ld16_st16)
>	ld16 r15=[r33]		// dest
>	;;
>	st16 [r32]=r15		// src
>	br.ret.sptk.many rp
>EXIT(ld16_st16)

/me kicks himself for mixing up src and dest.

extern ld16_st16(dest, src);

ENTRY(ld16_st16)
	ld16 r15=[r32]		// src
	;;
	st16 [r33]=r15		// dest
	br.ret.sptk.many rp
EXIT(ld16_st16)

-
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 Nov 02 18:23:54 2006

This archive was generated by hypermail 2.1.8 : 2006-11-02 18:24:20 EST