linux-mips
[Top] [All Lists]

Re: [PATCH][MIPS][1/7] AR7: core support

To: linux-mips@linux-mips.org
Subject: Re: [PATCH][MIPS][1/7] AR7: core support
From: Matteo Croce <technoboy85@gmail.com>
Date: Fri, 21 Sep 2007 03:57:52 +0200
Cc: Florian Fainelli <florian@openwrt.org>, Felix Fietkau <nbd@openwrt.org>, Eugene Konev <ejka@imfi.kspu.ru>, Nicolas Thill <nico@openwrt.org>, ralf@linux-mips.org, Andrew Morton <akpm@linux-foundation.org>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; bh=2u3VLy4ZQPimOOmiY2baO7UqOzsyh/gFud0QmQmexTs=; b=c9Wx40C72MPEKzhRVsKR8iN+DswdiR0pHHSeTES74JUzONsQrOQtHa+9ve8/uKPpp7F71AWS/PyuWfeBpTIbVzmyw89IEsdlJAQqxxdaTKDJ++KoISDnvC/4V0Zo1GvQs+ffeW2KUG2f6rsT9RwLn1psYulYeVtvbTtzK1qNRwk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=NqCrF3UX5wRwNZl2KWsw4Q2vOaXvcP5vp3S5qjV+dbgtX6seymePssPnAeO5IbOAej8qo9752EuaYfv9t5METGsZzGqPhnUTJhHNoOqP9jnKaG4fgXQRmEdMYS9psx9DF9siyQ8xj9XEwFlYONGpH5ZKiKbiKSxQTODB01aTVow=
In-reply-to: <200709201743.48164.technoboy85@gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <200709201728.10866.technoboy85@gmail.com> <200709201743.48164.technoboy85@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: KMail/1.9.6 (enterprise 0.20070907.709405)
Forgot this:

diff --git a/include/asm-mips/page.h b/include/asm-mips/page.h
index e3301e5..73a59d1 100644
--- a/include/asm-mips/page.h
+++ b/include/asm-mips/page.h
@@ -184,8 +184,10 @@ typedef struct { unsigned long pgprot; } pgprot_t;
 #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 <asm-generic/memory_model.h>
 #include <asm-generic/page.h>

<Prev in Thread] Current Thread [Next in Thread>