nova: add migration support for global threads

Fixes #3842
This commit is contained in:
Alexander Boettcher
2020-07-28 19:30:56 +02:00
committed by Christian Helmuth
parent 1b41d9db90
commit 99fa203673
11 changed files with 235 additions and 94 deletions

View File

@ -236,7 +236,13 @@ namespace Nova {
/**
* Ec operations
*/
enum Ec_op { EC_RECALL = 0U, EC_YIELD = 1U, EC_DONATE_SC = 2U, EC_RESCHEDULE = 3U };
enum Ec_op {
EC_RECALL = 0U,
EC_YIELD = 1U,
EC_DONATE_SC = 2U,
EC_RESCHEDULE = 3U,
EC_MIGRATE = 4U,
};
/**
* Pd operations
@ -754,7 +760,7 @@ namespace Nova {
enum {
PT_SEL_PAGE_FAULT = 0xe,
PT_SEL_PARENT = 0x1a, /* convention on Genode */
PT_SEL_MAIN_EC = 0x1c, /* convention on Genode */
EC_SEL_THREAD = 0x1c, /* convention on Genode */
PT_SEL_STARTUP = 0x1e,
SM_SEL_SIGNAL = 0x1e, /* alias of PT_SEL_STARTUP */
PT_SEL_RECALL = 0x1f,