[PATCH] x86: add 'runtime constant' infrastructure
Linus Torvalds
torvalds at linux-foundation.org
Sat Jun 8 20:11:32 PDT 2024
On Sat, 8 Jun 2024 at 13:55, Linus Torvalds
<torvalds at linux-foundation.org> wrote:
>
> Think of this patch mostly as a "look, adding another architecture
> isn't *that* hard - even if the constant value is spread out in the
> instructions".
.. and here's a version that actually works. It wasn't that bad.
Or rather, it wouldn't have been that bad had I not spent *ages*
debugging a stupid cut-and-paste error where I instead of writing
words 0..3 of the 64-bit large constant generation, wrote words 0..2
and then overwrote word 2 (again) with the data that should have gone
into word 3. Causing the top 32 bits to be all wonky. Oops. Literally.
That stupid typo caused like two hours of wasted time.
But anyway, this patch actually works for me. It still doesn't do any
I$/D$ flushing, because it's not needed in practice, but it *should*
probably do that.
Linus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-arm64-add-runtime-const-support.patch
Type: text/x-patch
Size: 3178 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20240608/4b0adeca/attachment-0001.bin>
More information about the linux-arm-kernel
mailing list