Re: [PATCH] m68k: fix ColdFire clear cache operation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Andreas,

On 07/10/2012 05:12 PM, Andreas Schwab wrote:
<gerg@xxxxxxxxxxxx> writes:

+static inline void clear_cf_icache(unsigned long start, unsigned long end)
+{
+	__asm__ __volatile__ (
+		"movel	%0,%%d0\n\t"
+		"movec	%%d0,%%cacr\n\t"
+		"nop\n\t"
+		:
+		: "i" (CACHE_MODE | CACR_ICINVA | CACR_BCINVA)

Why not "r"?

Yes, that is better. I will revise and repost.

Thanks
Greg



------------------------------------------------------------------------
Greg Ungerer  --  Principal Engineer        EMAIL:     gerg@xxxxxxxxxxxx
SnapGear Group, McAfee                      PHONE:       +61 7 3435 2888
8 Gardner Close,                            FAX:         +61 7 3891 3630
Milton, QLD, 4064, Australia                WEB: http://www.SnapGear.com


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


[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux