From 6752da6b2612c56e37bd8e9e176a7fedf4607bcc Mon Sep 17 00:00:00 2001 From: Jason Jin Date: Mon, 18 Apr 2011 17:54:04 +0800 Subject: ColdFire:Add mb for 5253 dram initialization The dram initialization sequence should be in order. This patch add mb for the dram intialization code to make sure the compiler do not disorder the code. Signed-off-by: Jason Jin --- arch/m68k/include/asm/io.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch/m68k') diff --git a/arch/m68k/include/asm/io.h b/arch/m68k/include/asm/io.h index 531f420336..d86eaf95ea 100644 --- a/arch/m68k/include/asm/io.h +++ b/arch/m68k/include/asm/io.h @@ -81,6 +81,8 @@ #define outl(val, port) out_le32((u32 *)((port)+_IO_BASE), (val)) #endif +#define mb() __asm__ __volatile__ ("" : : : "memory") + extern inline void _insb(volatile u8 * port, void *buf, int ns) { u8 *data = (u8 *) buf; -- cgit v1.2.1