base-tukija: Added syscall to return or voluntarily yield CPU cores.

This commit is contained in:
Michael Mueller
2025-03-05 14:39:58 +01:00
parent f96331d59e
commit 61a3cca20e

View File

@@ -417,6 +417,18 @@ namespace Tukija {
return syscall_0(TUKIJA_CELL_CTRL, op, pd);
}
ALWAYS_INLINE
inline uint8_t release(Tukija::Resource_type type, Tukija::Release_op op = Tukija::Release_op::RELEASE)
{
return syscall_0(TUKIJA_RELEASE, op, type);
}
ALWAYS_INLINE
inline uint8_t return_to_owner(Tukija::Resource_type type)
{
return release(type, Tukija::Release_op::RETURN_TO_OWNER);
}
ALWAYS_INLINE
inline uint8_t assign_pci(mword_t pd, mword_t mem, mword_t rid)
{