Changeset 20021


Ignore:
Timestamp:
2010-03-06T23:33:19+01:00 (8 years ago)
Author:
florian
Message:

[ar7] fix cpmac panics with 2.6.32 (#6764)

File:
1 edited

Legend:

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

    r19812 r20021  
    2727        return (void *)old_handler; 
    2828 } 
     29--- a/arch/mips/include/asm/page.h 
     30+++ b/arch/mips/include/asm/page.h 
     31@@ -185,8 +185,10 @@ typedef struct { unsigned long pgprot; } 
     32 #define VM_DATA_DEFAULT_FLAGS  (VM_READ | VM_WRITE | VM_EXEC | \ 
     33                                 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) 
     34  
     35-#define UNCAC_ADDR(addr)       ((addr) - PAGE_OFFSET + UNCAC_BASE) 
     36-#define CAC_ADDR(addr)         ((addr) - UNCAC_BASE + PAGE_OFFSET) 
     37+#define UNCAC_ADDR(addr)       ((addr) - PAGE_OFFSET + UNCAC_BASE +    \ 
     38+                                PHYS_OFFSET) 
     39+#define CAC_ADDR(addr)         ((addr) - UNCAC_BASE + PAGE_OFFSET -    \ 
     40+                                PHYS_OFFSET) 
     41  
     42 #include <asm-generic/memory_model.h> 
     43 #include <asm-generic/page.h> 
Note: See TracChangeset for help on using the changeset viewer.