linux-mips
[Top] [All Lists]

Re: Building 64 bit kernel on Cobalt

To: vagabon.xyz@gmail.com
Subject: Re: Building 64 bit kernel on Cobalt
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Thu, 22 Mar 2007 02:07:56 +0900 (JST)
Cc: maillist@jg555.com, linux-mips@linux-mips.org, ralf@linux-mips.org
In-reply-to: <cda58cb80703190317h80cfd53x4acee55f2c757907@mail.gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20070319.150705.100740532.nemoto@toshiba-tops.co.jp> <cda58cb80703190308k4e57e194u56dca25b063646b6@mail.gmail.com> <cda58cb80703190317h80cfd53x4acee55f2c757907@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
On Mon, 19 Mar 2007 11:17:48 +0100, "Franck Bui-Huu" <vagabon.xyz@gmail.com> 
wrote:
> > > You are using CONFIG_BUILD_ELF64=y and CKSEG0 load address.
> > > This combination does not work.  Please refer these threads:
> > >
> >
> > Thanks Atsushi for sorting this out. It's a bit sad to get these type
> > of information after so many email echanges...
> >
> 
> BTW, how this config has ever worked for a 2.6.19 kernel ? I don't see
> why using __pa() instead of CPHYSADDR() breaks this config...

2.6.19:
        CPHYSADDR(0xffffffff80000000) == 0
        __pa(0xffffffff80000000) == 0xffffffff80000000 - 0x9800000000000000
2.6.20 (CONFIG_BUILD_ELF64=y):
        CPHYSADDR(0xffffffff80000000) == 0
        __pa(0xffffffff80000000) == 0xffffffff80000000 - 0x9800000000000000
2.6.20 (CONFIG_BUILD_ELF64=n):
        CPHYSADDR(0xffffffff80000000) == 0
        __pa(0xffffffff80000000) == 0

The reason is obvious, isn't it? ;)

---
Atsushi Nemoto

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