| To: | mbizon@freebox.fr |
|---|---|
| Subject: | Re: [PATCH 0/2] FLATMEM: allow memory to start at pfn != 0 [take #2] |
| From: | "Franck Bui-Huu" <vagabon.xyz@gmail.com> |
| Date: | Mon, 5 Mar 2007 15:15:46 +0100 |
| Cc: | ralf <ralf@linux-mips.org>, 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=BWutyqVkxnzVuLWswrmL2hXQF9gOTii2Lyb5pL5vhBVC0Tn3+fMXAiktAcZmmI6Wwxa/hB8j6MDCL6ETZd2nCA0FblQZBUFPGnqkS54ApmMT7nh5dVpCv3B2qAJMrRxglZFavF6j8NfNjf4FedUQa6B9KUE1VWjPgC4FT6QwQZw= |
| 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=VHCPWbrFy+jZbqLWkdt6sC1hCgc50FntDL/x+pQnJuTWMtrrBrY5A6SwD76ic55lcZCbVluSUPXaG61l2Esn7Wh2KveNzI4lUJvKqAJRPEAFCA3RIll9LavHszQN/cksyhyTKlB/4cx23kfC2D85VN1eN/LfF+KASSXJMKE5Tb8= |
| In-reply-to: | <1172879147.964.65.camel@sakura.staff.proxad.net> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <116841864595-git-send-email-fbuihuu@gmail.com> <1172879147.964.65.camel@sakura.staff.proxad.net> |
| Sender: | linux-mips-bounce@linux-mips.org |
Hi, On 3/3/07, Maxime Bizon <mbizon@freebox.fr> wrote: Looking at phys_to_virt(), it looks like I also need to change PAGE_OFFSET to 0x90000000 to get correct values. This makes the kernel boot with a correct memory map, but userspace doesn't work anymore.
No phys_to_virt() should already take care of that:
static inline void * phys_to_virt(unsigned long address)
{
return (void *)(address + PAGE_OFFSET - PHYS_OFFSET);
}
Does your platform code do some address translation by using
CPHYSADDR() macro or by using anything else than pa() ?
Just in case, I'm not using git head, but a 2.6.20 kernel with the 2 2.6.20 should be OK. This patchset need some commits which have been applied before. patches applied. Just tell me if you need complete dmesg.
yes, please, it may help. Can you send your config file as well ?
Just to be sure, is your PAGE_OFFSET equal to 0x80000000 ?
Thanks
--
Franck
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Linux kernel 2.6.20, PCI and hpt266, Marco Braga |
|---|---|
| Next by Date: | 0 function size, Alexander Sirotkin |
| Previous by Thread: | Re: [PATCH 0/2] FLATMEM: allow memory to start at pfn != 0 [take #2], Maxime Bizon |
| Next by Thread: | Re: [PATCH 0/2] FLATMEM: allow memory to start at pfn != 0 [take #2], Maxime Bizon |
| Indexes: | [Date] [Thread] [Top] [All Lists] |