Changeset 8770


Ignore:
Timestamp:
2007-09-13T09:16:26+02:00 (10 years ago)
Author:
ejka
Message:

fix CAC_ADDR/UNCAC_ADDR macros

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar7/patches-2.6.22/100-board_support.patch

    r8766 r8770  
    6969 # 
    7070 core-$(CONFIG_MACH_JAZZ)       += arch/mips/jazz/ 
     71diff -urN linux-2.6.22.4/include/asm-mips/page.h linux-2.6.22.4.new/include/asm-mips/page.h 
     72--- linux-2.6.22.4/include/asm-mips/page.h      2007-08-21 12:33:06.000000000 +0800 
     73+++ linux-2.6.22.4.new/include/asm-mips/page.h  2007-09-13 15:13:00.000000000 +0800 
     74@@ -187,8 +187,10 @@ 
     75 #define VM_DATA_DEFAULT_FLAGS  (VM_READ | VM_WRITE | VM_EXEC | \ 
     76                                 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) 
     77  
     78-#define UNCAC_ADDR(addr)       ((addr) - PAGE_OFFSET + UNCAC_BASE) 
     79-#define CAC_ADDR(addr)         ((addr) - UNCAC_BASE + PAGE_OFFSET) 
     80+#define UNCAC_ADDR(addr)       ((addr) - PAGE_OFFSET + UNCAC_BASE +    \ 
     81+                                PHYS_OFFSET) 
     82+#define CAC_ADDR(addr)         ((addr) - UNCAC_BASE + PAGE_OFFSET -    \ 
     83+                                PHYS_OFFSET) 
     84  
     85 #include <asm-generic/memory_model.h> 
     86 #include <asm-generic/page.h> 
Note: See TracChangeset for help on using the changeset viewer.