On Tue, Dec 27, 2022 at 08:36:41PM +0700, Ammar Faizi wrote:
On 12/27/22 8:32 PM, Ammar Faizi wrote:
Thus now my focus will be on storing these variables where relevant for all archs, so that your getauxval() implementation works on top of it. It will be much cleaner and will also improve programs' ease of implementation and reliability.
Are you going to wire up a patchset for it?
If so, I'll wait for it. When it's already committed, I'll base this series on top it.
Or I take your series locally then submit your patches and mine in a single series.
What do you prefer?
Side note: I only know x86 Assembly. So unfortunately, I can't get them working on all arch(s).
The nice thing about assembly is that once you know one, others are easy to learn to permit you to write code that you can test. You can have a look at MIPS for delayed slots, SPARC for register banks, ARM for instructions that do multiple operations at once and you'll have seen most of the basics that you'll ever need. Also all of these are RISC based and cannot load a full-length register in a single instruction, that's possibly the most confusing thing when you come from x86. And it's also very interesting to see differences in constraints ;-)
Willy