From: Stafford Horne <shorne@gmail.com>
To: Linux OpenRISC <linux-openrisc@vger.kernel.org>, newlib@sourceware.org
Subject: Re: [PATCH] or1k: Fix compiler warnings
Date: Thu, 12 Dec 2024 16:02:07 +0000 [thread overview]
Message-ID: <Z1sI_3QXMyl1ez8G@antec> (raw)
In-Reply-To: <Z1oUxmYHBXJKHHcp@calimero.vinschen.de>
On Wed, Dec 11, 2024 at 11:40:06PM +0100, Corinna Vinschen wrote:
> Hi Stafford,
>
> On Dec 11 14:39, Stafford Horne wrote:
> > On Wed, Dec 11, 2024 at 02:10:59PM +0100, Corinna Vinschen wrote:
> > > Hi Stafford,
> > >
> > > I'm not engaged in this stuff, so maybe this is dumb...
> > >
> > > Changing the parameter from uint32_t to void* sounds like it would have
> > > been the right thing from the start, but it's also an ABI change on 64
> > > bit or1k. I could imagine the uint32_t is just a pointer value from the
> > > lower 4G space on 64 bit. Do we even support 64 bit or1k?
> >
> > Hi Corinna,
> >
> > I think it's a good conncern. I put some comments on the patch below with my
> > thoughts.
> >
> > If this is OK, I will send a v2 with a better description of each change.
> >
> > See below:
> > [...]
> > I agree that if we did have a 64-bit implementation it may be an
> > issue. But there never has been one, or1k is only 32-bit. I think
> > the ABI does not change with this patch.
>
> IIUC or1k is designed with 32 bit and 64 bit implementations in mind.
Right, the architecture spec was expanded to include 64-bit but that has never
taken off.
> However, if there's no existing 64 bit toolchain for or1k yet, my
> concern doesn't really matter. Even better if the ABI is 64 bit clean
> before such toolchain is created.
>
> > Maybe I am wrong, but I think this is safe because:
> >
> > - There is no ABI change as void* and uint32_t are the same in or1k
> > - There is no API change as or1k_uart.h is not a public API
> >
> > What do you think?
>
> Sounds good to me. Just go ahead with a v2 as per your suggestion.
OK, thanks
-Stafford
prev parent reply other threads:[~2024-12-12 16:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-10 12:58 [PATCH] or1k: Fix compiler warnings Stafford Horne
2024-12-11 13:10 ` Corinna Vinschen
2024-12-11 14:39 ` Stafford Horne
2024-12-11 22:40 ` Corinna Vinschen
2024-12-12 16:02 ` Stafford Horne [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z1sI_3QXMyl1ez8G@antec \
--to=shorne@gmail.com \
--cc=linux-openrisc@vger.kernel.org \
--cc=newlib@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).