| To: | ralf@linux-mips.org |
|---|---|
| Subject: | [PATCH 2/4] Make PAGE_OFFSET aware of PHYS_OFFSET |
| From: | Franck Bui-Huu <vagabon.xyz@gmail.com> |
| Date: | Tue, 27 Mar 2007 11:19:38 +0200 |
| Cc: | linux-mips@linux-mips.org |
| Dkim-signature: | a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:to:cc:subject:date:message-id:x-mailer:in-reply-to:references:from; b=j1Mp++a3ycJqQaEeQJwYh/2Q1+ksKveP/qshsw226+rTzU5NPdq+EN1xFc7FJi/cEm0xS1z14V27+subx8Q5kJX9Jl+gYIACKTJtNsg56Y46qVP5MzsM6d8Qqher6o6qXqmeuutB9DdDglilBLwZetChw8uvK95vk6paz0z99yY= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:to:cc:subject:date:message-id:x-mailer:in-reply-to:references:from; b=C6B7yvZ3YHoc1bnS9AFpgKlkr0stLD8sh0X8+rAIAp6Uf1vJzqEbQMnxhspf1wMSFGeloTqMNaxG1JkajcJqiMHo+CTQDfOMPorLZg6BfrvP+u2OAlVJ2xghlLnjFMvxNmqr1ZThHa4cMW3IcFbiv7Z1U4LgY7VUlU5tAx7S4aI= |
| In-reply-to: | <11749871802730-git-send-email-fbuihuu@gmail.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <11749871802730-git-send-email-fbuihuu@gmail.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
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 there are no more needs for them to redefine PAGE_OFFSET. For mapped kernel, they need to redefine PAGE_OFFSET anyways. Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com> --- include/asm-mips/mach-generic/spaces.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/asm-mips/mach-generic/spaces.h b/include/asm-mips/mach-generic/spaces.h index 9a3c521..512bca5 100644 --- a/include/asm-mips/mach-generic/spaces.h +++ b/include/asm-mips/mach-generic/spaces.h @@ -26,7 +26,7 @@ * We handle pages at KSEG0 for kernels with 32 bit address space. */ #ifndef PAGE_OFFSET -#define PAGE_OFFSET 0x80000000UL +#define PAGE_OFFSET (0x80000000UL + PHYS_OFFSET) #endif /* @@ -45,9 +45,9 @@ */ #ifndef PAGE_OFFSET #ifdef CONFIG_DMA_NONCOHERENT -#define PAGE_OFFSET 0x9800000000000000UL +#define PAGE_OFFSET (0x9800000000000000UL + PHYS_OFFSET) #else -#define PAGE_OFFSET 0xa800000000000000UL +#define PAGE_OFFSET (0xa800000000000000UL + PHYS_OFFSET) #endif #endif -- 1.5.1.rc1.27.g1d848 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 0/4] PHYS_OFFSET fix and cleanup, Franck Bui-Huu |
|---|---|
| Next by Date: | [PATCH 3/4] Move PHY_OFFSET definition in spaces.h, Franck Bui-Huu |
| Previous by Thread: | [PATCH 0/4] PHYS_OFFSET fix and cleanup, Franck Bui-Huu |
| Next by Thread: | [PATCH 3/4] Move PHY_OFFSET definition in spaces.h, Franck Bui-Huu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |