[Libre-soc-bugs] [Bug 982] Support PowerPC ABI in ISACaller
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Tue Oct 24 06:45:32 BST 2023
https://bugs.libre-soc.org/show_bug.cgi?id=982
--- Comment #171 from Dmitry Selyutin <ghostmansd at gmail.com> ---
(In reply to Jacob Lifshay from comment #167)
> (In reply to Luke Kenneth Casson Leighton from comment #166)
> > jacob see #1066 reduce the mem block down to 1<<29 please
>
> I'm assuming you meant bug #1173.
> >
> > dmitry the return result is "-1" but is coming out at 0xffffffffff...
...which is exactly the expected result when unsigned integer is used. I think
the result can just use long instead of ulong.
>
> I would guess the issue is that uname is being used, but what you actually
> need is the arch of the user-space executable, not the kernel, since Luke
> seems to have a armhf user-space and aarch64 kernel. after some
> experimentation, it looks like you can use:
> python3 -c 'import sysconfig;
> print(sysconfig.get_config_var("HOST_GNU_TYPE"))'
I'd take a look at this:
platform.architecture()[0]
sys.maxsize > 2**32
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list