All of lore.kernel.org
 help / color / mirror / Atom feed
From: Haiying Wang <r54964@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH 2/2] Define DO_SYNC in each CPU's header file
Date: Fri, 09 Feb 2007 12:47:39 -0500	[thread overview]
Message-ID: <1171043259.3932.23.camel@udp097531uds.am.freescale.net> (raw)
In-Reply-To: <45C179F0.6050206@orkun.us>

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").
-- 
1.4.4.4

  parent reply	other threads:[~2007-02-09 17:47 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-22  7:27 [U-Boot-Users] [PATCH] Fixed cfi flash read uchar bug wei.zhang at freescale.com
2006-12-22 10:00 ` Wolfgang Denk
2006-12-22 11:02   ` Zhang Wei
2006-12-22 14:11     ` Wolfgang Denk
2006-12-22 16:34       ` [U-Boot-Users] 答复: " Zhang Wei-r63237
2006-12-22 17:17         ` Wolfgang Denk
2006-12-25  7:03           ` Zhang Wei
2006-12-25 23:24             ` Wolfgang Denk
2006-12-26  6:04               ` Zhang Wei
2007-01-04  2:07                 ` Zhang Wei-r63237
2007-01-04  8:17                   ` Wolfgang Denk
2007-01-04  8:36               ` Zhang Wei-r63237
2007-01-04  9:23                 ` Wolfgang Denk
2007-01-04 11:19                   ` Stefan Roese
2007-01-05 13:27                   ` Stefan Roese
2007-01-07 10:12                     ` Tolunay Orkun
2007-01-07 10:40                       ` Wolfgang Denk
2007-01-13  7:11                         ` Tolunay Orkun
2007-01-13 17:53                           ` Håvard Skinnemoen
2007-01-16  6:52                             ` Stefan Roese
2007-01-25  4:38                           ` Zhang Wei-r63237
2007-01-25 16:10                             ` Timur Tabi
2007-01-25 20:33                               ` Wolfgang Denk
2007-01-26  2:13                                 ` Zhang Wei-r63237
2007-01-29 11:29                                   ` Tolunay Orkun
2007-01-30  3:36                                     ` Wang Haiying-r54964
2007-01-31  9:01                                       ` Tolunay Orkun
2007-01-31 19:25                                         ` Haiying Wang
2007-02-01  5:26                                           ` Tolunay Orkun
2007-02-01 22:06                                             ` Haiying Wang
2007-02-01 22:52                                               ` Chris Fester
2007-02-09 17:47                                             ` [U-Boot-Users] [PATCH0/2] Re-do the patch for adding DO_SYNC in flash_write_cmd Haiying Wang
2007-02-09 19:42                                               ` Wolfgang Denk
2007-02-09 19:48                                                 ` Haiying Wang
2007-02-10  1:04                                                   ` Wolfgang Denk
2007-02-10  7:23                                                     ` Tolunay Orkun
2007-02-10  7:40                                                       ` Stefan Roese
2007-02-10  7:57                                                         ` Tolunay Orkun
2007-02-10  8:07                                                           ` Stefan Roese
2007-02-10 21:55                                                             ` Wolfgang Denk
2007-02-10 21:54                                                         ` Wolfgang Denk
2007-02-11  2:34                                                         ` Timur Tabi
2007-02-11 10:23                                                           ` Wolfgang Denk
2007-02-09 19:59                                                 ` Haavard Skinnemoen
2007-02-10  1:02                                                   ` Wolfgang Denk
2007-02-09 17:47                                             ` [U-Boot-Users] [PATCH 1/2] Add DO_SYNC at the end of flash_write_cmd Haiying Wang
2007-02-09 19:45                                               ` Wolfgang Denk
2007-02-09 17:47                                             ` Haiying Wang [this message]
2007-02-09 19:46                                               ` [U-Boot-Users] [PATCH 2/2] Define DO_SYNC in each CPU's header file Wolfgang Denk
2007-02-10  7:17                                                 ` Tolunay Orkun
2007-01-08  2:41                     ` [U-Boot-Users] [PATCH] Fixed cfi flash read uchar bug Zhang Wei-r63237
2006-12-22 17:07       ` Chris Fester
2006-12-22 17:24         ` Wolfgang Denk
2006-12-22 17:42           ` Chris Fester
2006-12-22 21:33             ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1171043259.3932.23.camel@udp097531uds.am.freescale.net \
    --to=r54964@freescale.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.