Article View: comp.arch
Article #889Re: Large constants in RISC
From: Scott Lurndal
Date: Sun, 22 Nov 2026 16:22
Date: Sun, 22 Nov 2026 16:22
37 lines
2328 bytes
2328 bytes
Michael S <already5chosen@yahoo.com> writes: >On Sat, 21 Nov 2026 19:49:16 -0000 (UTC) >cross@spitfire.i.gajendra.net (Dan Cross) wrote: > >> >> >But host does not know upper bits at compile time. Except for deeply >> >embedded hosts. But in 64-bit land those are rarity. >> >> It depends on the device, not just the host. On a device that >> is known to only support 32-bit bars, for example, one _can_ >> know at compile time that the upper bits will all be 0. >> > >The point is that not all address bits are known in compile-time. >So, ability to efficiently assemble arbitrary 64-bit (or 48-bit, >or 52-bit) constants in compile time does not help this particular >application much. Or at all. I've worked with modern SoCs that support both a fixed physical address for the on-chip custom devices, as well as providing PCI compatable configuration spaces with dynamically programmed BARs for those same custom devices. The linux kernel and UEFI uses the standard programmed BARs, while the SoC specific firmware uses the fixed physical addresses (where bit 47 == 1). In both cases, software can also use an offset from a 48-bit base address. >For the question at hand it does not matter which entity assigns BARs. >The only thing that matters is that absolute HW addresses are not known >at compile time. > Usually, but not always.
Technical Details
Message-ID:
<QEEMS.1875$0%U3.547@fx33.iad>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer05.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx33.iad.POSTED!not-for-mailReferences:
<11d76uq$11cdc$1@paganini.bofh.team> <20261120122630.000017cb@yahoo.com> <LBZLS.2021$mfg4.1482@fx36.iad> <20261121195356.00001dd1@yahoo.com> <11dssjs$2si$1@reader2.panix.com> <20261121221023.000078cd@yahoo.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer05.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx33.iad.POSTED!not-for-mail X-newsreader: xrn 9.03-beta-14-64bit Sender: scott@dragon.sl.home (Scott Lurndal) From: scott@slp53.sl.home (Scott Lurndal) Reply-To: slp53@pacbell.net Subject: Re: Large constants in RISC Newsgroups: comp.arch References: <11d76uq$11cdc$1@paganini.bofh.team> <20261120122630.000017cb@yahoo.com> <LBZLS.2021$mfg4.1482@fx36.iad> <20261121195356.00001dd1@yahoo.com> <11dssjs$2si$1@reader2.panix.com> <20261121221023.000078cd@yahoo.com> Lines: 37 Message-ID: <QEEMS.1875$0%U3.547@fx33.iad> X-Complaints-To: abuse@usenetserver.com NNTP-Posting-Date: Sun, 22 Nov 2026 16:22:08 UTC Organization: UsenetServer - www.usenetserver.com Date: Sun, 22 Nov 2026 16:22:08 GMT X-Received-Bytes: 2118