[Libre-soc-bugs] [Bug 982] Support PowerPC ABI in ISACaller

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Fri Sep 22 17:58:18 BST 2023


https://bugs.libre-soc.org/show_bug.cgi?id=982

--- Comment #73 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Luke Kenneth Casson Leighton from comment #71)
> (In reply to Jacob Lifshay from comment #68)
> 
> >     def emulate_syscall(self):
> >         syscall_num = self.gpr(0)
> >         if syscall_num in self.syscall_table:
> >             yield from self.syscall_table[syscall_num](self)
> >         else:
> >             self.cr.crl[0][CRFields.SO] = 1
> >             self.gpr[3] = ENOSYS
> 
> this is the "last resort" method that actually is in some
> ways "better", because by literally implementing every single
> POSIX (ok ok i know Dmitry, it's not actually POSIX) call
> we have no "hacks" - just a hell of a lot of work ahead instead.

the idea is self.syscall_table has every syscall we implement, not every
syscall implemented by the linux kernel.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list