| To: | "Ralf Baechle" <ralf@linux-mips.org> |
|---|---|
| Subject: | Re: [PATCH] Always include PHYS_OFFSET in PAGE_OFFSET |
| From: | "Franck Bui-Huu" <vagabon.xyz@gmail.com> |
| Date: | Tue, 20 Mar 2007 17:21:05 +0100 |
| Cc: | mbizon@freebox.fr, post@pfrst.de, linux-mips <linux-mips@linux-mips.org> |
| Dkim-signature: | a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZrkEfXrzKsi3jPEV9xu79MUi1JBD6WsUMb1Z5BD2+k/ft9a/6vU8QQONL560ebAYCG2UryM83p/geQgBIkUV249X5ZlhvlPn3kwvpFUhOsTqd1KSbgoh+sRuttUvAAEmmOCCkr1mcGgksLGtBBS9g4DaMiNp5CLzFH1fdXiwkKg= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=NSBMgrEgwhEvLmDOmi6yP0IGuGtlQhwQcXfUfYDvtazVNFh3oNLKQbRHAuz/5dSeuOsZOD1Z/rqatP9jL39pK8w2O7POvkcPc7SawvwCAe+U6km399SuZTJAM1BEZKDnN08oBzePY625+fCzXxiltkqzZLW9uK1F0e5SiBjDCYA= |
| In-reply-to: | <45FEB353.5020001@innova-card.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <45FEB353.5020001@innova-card.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
Ralf, On 3/19/07, Franck Bui-Huu <vagabon.xyz@gmail.com> wrote: From: Franck Bui-Huu <fbuihuu@gmail.com> For platforms that use PHYS_OFFSET and do not use a mapped kernel, this patch automatically adds PHYS_OFFSET into PAGE_OFFSET. Therefore for these platforms there are no more needs to change PAGE_OFFSET.
This patch is actually useless. I didn't notice that spaces.h must be
totaly rewritten by platforms when they need to customize one value.
Why, I dunno ?
Why not doing something like:
-- >8 --
diff --git a/include/asm-mips/mach-generic/spaces.h
b/include/asm-mips/mach-generic/spaces.h
index 0ae9997..beec80e 100644
--- a/include/asm-mips/mach-generic/spaces.h
+++ b/include/asm-mips/mach-generic/spaces.h
@@ -16,13 +16,18 @@
#define CAC_BASE 0x80000000
#define IO_BASE 0xa0000000
#define UNCAC_BASE 0xa0000000
+
+#ifndef MAP_BASE
#define MAP_BASE 0xc0000000
+#endif
/*
* This handles the memory map.
* We handle pages at KSEG0 for kernels with 32 bit address space.
*/
+#ifndef PAGE_OFFSET
#define PAGE_OFFSET 0x80000000UL
+#endif
/*
* Memory above this physical address will be considered highmem.
@@ -38,11 +43,13 @@
/*
* This handles the memory map.
*/
+#ifndef PAGE_OFFSET
#ifdef CONFIG_DMA_NONCOHERENT
#define PAGE_OFFSET 0x9800000000000000UL
#else
#define PAGE_OFFSET 0xa800000000000000UL
#endif
+#endif
/*
* Memory above this physical address will be considered highmem.
-- >8 --
and doing in platform's spaces.h:
[ redefine a couple of constants]
#include <asm/mach-generic/spaces.h>
AFAIK, {CAC,UNCAC,IO}_BASE are likely to be the same for all platforms, no ?
Does that need some cleanup ? if so I'm your man ;)
--
Franck
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Au1500 and TI PCI1510 cardbus, Marco Braga |
|---|---|
| Next by Date: | Re: Au1500 and TI PCI1510 cardbus, Sergei Shtylyov |
| Previous by Thread: | [PATCH] Always include PHYS_OFFSET in PAGE_OFFSET, Franck Bui-Huu |
| Next by Thread: | [PATCH] Netpoll support for Sibyte MAC, Deepak Saxena |
| Indexes: | [Date] [Thread] [Top] [All Lists] |