From ffd352b2bad63eb77de0540ce68c2b63ba8620db Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Sat, 6 Mar 2010 22:33:19 +0000 Subject: [PATCH] fix cpmac panics with 2.6.32 (#6764) SVN-Revision: 20021 --- .../ar7/patches-2.6.32/100-board_support.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/target/linux/ar7/patches-2.6.32/100-board_support.patch b/target/linux/ar7/patches-2.6.32/100-board_support.patch index caa441eafc..0738354d89 100644 --- a/target/linux/ar7/patches-2.6.32/100-board_support.patch +++ b/target/linux/ar7/patches-2.6.32/100-board_support.patch @@ -26,3 +26,18 @@ } return (void *)old_handler; } +--- a/arch/mips/include/asm/page.h ++++ b/arch/mips/include/asm/page.h +@@ -185,8 +185,10 @@ typedef struct { unsigned long pgprot; } + #define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \ + VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) + +-#define UNCAC_ADDR(addr) ((addr) - PAGE_OFFSET + UNCAC_BASE) +-#define CAC_ADDR(addr) ((addr) - UNCAC_BASE + PAGE_OFFSET) ++#define UNCAC_ADDR(addr) ((addr) - PAGE_OFFSET + UNCAC_BASE + \ ++ PHYS_OFFSET) ++#define CAC_ADDR(addr) ((addr) - UNCAC_BASE + PAGE_OFFSET - \ ++ PHYS_OFFSET) + + #include + #include -- 2.25.1