Re: [PATCH 3/5] OpenRISC: Export memory_start and memory_end

Jonas Bonn
2012-03-02T09:14:26Z

On Fri, 2012-03-02 at 09:48 +0100, Richard Weinberger wrote:
> Am 02.03.2012 07:51, schrieb Jonas Bonn:
> > On Fri, 2012-03-02 at 01:55 +0100, Richard Weinberger wrote:
> >> At least virt_addr_valid() makes use of memory_end.
> >
> > virt_addr_valid looks broken... it shouldn't be comparing a virtual
> > address against memory_end which is phys_addr_t.
>
> Then it's time to implement it correctly and match OpenRISC's
> semantics.
>

Give this a try...

http://git.openrisc.net/cgit.cgi/jonas/linux/commit/?id=30fbeb350cd26dc87477b9cadf0bfe132dcf5119

/Jonas