base-tukija: Mark CPU used for main thread in CIP's current CPUs field.

This commit is contained in:
Michael Mueller
2025-03-11 13:58:36 +01:00
parent 058b190a81
commit a6e880e267

View File

@@ -135,6 +135,7 @@ class Ealan::Cell_component : public Genode::Rpc_object<Cell>,
/* TODO: implement */
Genode::log("Changing cell's affinity to ", affinity);
_calculate_mask_for_location(&_cip->cores_reserved, affinity.location());
_cip->cores_current.set(Core::platform_specific().kernel_cpu_id(affinity.location()));
Tukija::cell_ctrl(_native_pd.sel(), Tukija::Cell_control::UPDATE_AFFINITY);
_map_location_to_kernel(affinity);
}