Re: [PATCH 2/3] sparc32: derive phys_base from the PAGE_OFFSET mapping

Magnus Lindholm <[email protected]>
Newsgroups org.kernel.vger.sparclinux,org.kernel.vger.linux-kernel
Message-ID <CA+=Fv5T4d0WiKZJ6ZahZ99+kN7a5vxZEy5qBz-Q1SKJ+n9T6Uw@mail.gmail.com>
Hi Sam,

On Fri, Aug 14, 2026 at 10:46 PM Sam Ravnborg <[email protected]> wrote:

> Use 0x%xl to avoid the casts?
> If we are noisy like this it would be nice to always print the RAM start
> and kernel start.

I've taken that as making the first print unconditional so both values
always show, and leaving the "adopted" line only for when they actually
differ - is that what you meant?

One wrinkle: __get_phys() returns 0 on anything but sun4m/sun4d, so on LEON
it would read "kernel is at 0x0" - happy to gate the whole thing on those
two if you'd prefer that, and I'll send a v2 either way.


Magnus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.