
For the arches which need sync in flash_write_cmd, DO_SYNC will be defined. Otherwise, it is a dummy stub for now.
Signed-off-by: Haiying Wang haiying.wang@freescale.com --- include/asm-arm/processor.h | 2 ++ include/asm-avr32/processor.h | 2 ++ include/asm-blackfin/processor.h | 2 ++ include/asm-i386/processor.h | 3 +++ include/asm-m68k/processor.h | 2 ++ include/asm-mips/processor.h | 2 ++ include/asm-nios2/processor.h | 3 +++ include/asm-ppc/processor.h | 2 ++ 8 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/include/asm-arm/processor.h b/include/asm-arm/processor.h index 445d449..5b61eee 100644 --- a/include/asm-arm/processor.h +++ b/include/asm-arm/processor.h @@ -11,6 +11,8 @@ #ifndef __ASM_ARM_PROCESSOR_H #define __ASM_ARM_PROCESSOR_H
+#define DO_SYNC /* dummy stub */ + /* * Default implementation of macro that returns current * instruction pointer ("program counter"). diff --git a/include/asm-avr32/processor.h b/include/asm-avr32/processor.h index cc59dfa..94f3432 100644 --- a/include/asm-avr32/processor.h +++ b/include/asm-avr32/processor.h @@ -22,6 +22,8 @@ #ifndef __ASM_AVR32_PROCESSOR_H #define __ASM_AVR32_PROCESSOR_H
+#define DO_SYNC /* dummy stub */ + #ifndef __ASSEMBLY__
#define current_text_addr() ({ void *pc; __asm__("mov %0,pc" : "=r"(pc)); pc; }) diff --git a/include/asm-blackfin/processor.h b/include/asm-blackfin/processor.h index 19bd720..4cd0be5 100644 --- a/include/asm-blackfin/processor.h +++ b/include/asm-blackfin/processor.h @@ -30,6 +30,8 @@ #ifndef __ASM_BLACKFIN_PROCESSOR_H #define __ASM_BLACKFIN_PROCESSOR_H
+#define DO_SYNC asm("ssync;") + /* * Default implementation of macro that returns current * instruction pointer ("program counter"). diff --git a/include/asm-i386/processor.h b/include/asm-i386/processor.h index 5dedba8..64633d2 100644 --- a/include/asm-i386/processor.h +++ b/include/asm-i386/processor.h @@ -26,4 +26,7 @@ /* Currently this header is unused in the i386 port * but some generic files #include <asm/processor.h> * so this file is a placeholder. */ + +#define DO_SYNC /* dummy stub */ + #endif diff --git a/include/asm-m68k/processor.h b/include/asm-m68k/processor.h index 3fafa6f..c49dab6 100644 --- a/include/asm-m68k/processor.h +++ b/include/asm-m68k/processor.h @@ -1,6 +1,8 @@ #ifndef __ASM_M68K_PROCESSOR_H #define __ASM_M68K_PROCESSOR_H
+#define DO_SYNC /* dummy stub */ + #include <asm/ptrace.h> #include <asm/types.h>
diff --git a/include/asm-mips/processor.h b/include/asm-mips/processor.h index 6838aee..4ad29e2 100644 --- a/include/asm-mips/processor.h +++ b/include/asm-mips/processor.h @@ -11,6 +11,8 @@ #ifndef _ASM_PROCESSOR_H #define _ASM_PROCESSOR_H
+#define DO_SYNC /* dummy stub */ + #include <linux/config.h>
#include <asm/isadep.h> diff --git a/include/asm-nios2/processor.h b/include/asm-nios2/processor.h index 68502a5..825e7b2 100644 --- a/include/asm-nios2/processor.h +++ b/include/asm-nios2/processor.h @@ -23,4 +23,7 @@
#ifndef __ASM_NIOS2_PROCESSOR_H_ #define __ASM_NIOS2_PROCESSOR_H_ + +#define DO_SYNC /* dummy stub */ + #endif /* __ASM_NIOS2_PROCESSOR_H_ */ diff --git a/include/asm-ppc/processor.h b/include/asm-ppc/processor.h index f102600..7843061 100644 --- a/include/asm-ppc/processor.h +++ b/include/asm-ppc/processor.h @@ -1,6 +1,8 @@ #ifndef __ASM_PPC_PROCESSOR_H #define __ASM_PPC_PROCESSOR_H
+#define DO_SYNC asm("sync;") + /* * Default implementation of macro that returns current * instruction pointer ("program counter").