Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=75ed405c63b3fc2402fb8ff825b0ebffcff26b57
Commit:     75ed405c63b3fc2402fb8ff825b0ebffcff26b57
Parent:     d2d50aa97d695d83ccb2341488d977e8cfe36555
Author:     Roy Huang <[EMAIL PROTECTED]>
AuthorDate: Thu Jun 14 12:54:44 2007 +0800
Committer:  Bryan Wu <[EMAIL PROTECTED]>
CommitDate: Thu Jun 14 12:54:44 2007 +0800

    Blackfin arch:  fix bug ad1836 fails to build properly for BF533-EZKIT
    
    bug log here: 
http://blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_item_id=3166
    
    Signed-off-by: Roy Huang <[EMAIL PROTECTED]>
    Signed-off-by: Bryan Wu <[EMAIL PROTECTED]>
---
 include/asm-blackfin/mach-common/def_LPBlackfin.h |   22 +++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/include/asm-blackfin/mach-common/def_LPBlackfin.h 
b/include/asm-blackfin/mach-common/def_LPBlackfin.h
index 7610352..be1ece8 100644
--- a/include/asm-blackfin/mach-common/def_LPBlackfin.h
+++ b/include/asm-blackfin/mach-common/def_LPBlackfin.h
@@ -42,6 +42,12 @@
 
 #if defined(ANOMALY_05000198)
 
+#define bfin_read8(addr) ({ unsigned char __v; \
+               __asm__ __volatile__ ("NOP;\n\t" \
+                       "%0 = b[%1] (z);\n\t" \
+                       : "=d"(__v) : "a"(addr)); \
+               __v; })
+
 #define bfin_read16(addr) ({ unsigned __v; \
                        __asm__ __volatile__ ("NOP;\n\t"\
                                                                "%0 = w[%1] 
(z);\n\t"\
@@ -52,6 +58,11 @@
                                             "%0 = [%1];\n\t"\
   : "=d"(__v) : "a"(addr)); __v; })
 
+#define bfin_write8(addr, val) ({ \
+               __asm__ __volatile__ ("NOP;\n\t" \
+                       "b[%0] = %1;\n\t" \
+                       : : "a"(addr), "d"(val) : "memory");})
+
 #define bfin_write16(addr,val) ({\
                       __asm__ __volatile__ ("NOP;\n\t"\
                                             "w[%0] = %1;\n\t"\
@@ -64,6 +75,12 @@
 
 #else
 
+#define bfin_read8(addr) ({ unsigned char __v; \
+               __asm__ __volatile__ ( \
+                       "%0 = b[%1] (z);\n\t" \
+                       :"=d"(__v) : "a"(addr)); \
+               __v; })
+
 #define bfin_read16(addr) ({ unsigned __v; \
                        __asm__ __volatile__ (\
                                                                "%0 = w[%1] 
(z);\n\t"\
@@ -74,6 +91,11 @@
                                             "%0 = [%1];\n\t"\
   : "=d"(__v) : "a"(addr)); __v; })
 
+#define bfin_write8(addr, val) ({ \
+               __asm__ __volatile__ ( \
+                       "b[%0] = %1; \n\t" \
+                       ::"a"(addr), "d"(val) : "memory");})
+
 #define bfin_write16(addr,val) ({\
                       __asm__ __volatile__ (\
                                             "w[%0] = %1;\n\t"\
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to