move threads out of system (#20674)

* move syslocks first

* progress

* clean up

* go on

* clean up

* clean up

* add imports syslocks

* remove documentation

* public deallocOsPages

* fixes genode

* fixes more

* fixes boehmGC

* cover more cases

* fixes cyclic deps

* fixes genode

* cleanup

* unpublic fields

* cleanup

* clean up
This commit is contained in:
ringabout 2022-10-30 00:11:40 +08:00 • committed by GitHub
commit 1dab8ba334
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 424 additions and 390 deletions

View file

@ -15,7 +15,7 @@ when not defined(genode):
{.error: "Genode only module".}
when not declared(GenodeEnv):
include genode/env
import genode/env
type RamDataspaceCapability {.
importcpp: "Genode::Ram_dataspace_capability", pure.} = object

View file

@ -20,10 +20,10 @@ when not defined(genode):
{.error: "Genode only include".}
type
GenodeEnvObj {.importcpp: "Genode::Env", header: "<base/env.h>", pure.} = object
GenodeEnvPtr = ptr GenodeEnvObj
GenodeEnvObj* {.importcpp: "Genode::Env", header: "<base/env.h>", pure.} = object
GenodeEnvPtr* = ptr GenodeEnvObj
const runtimeEnvSym = "nim_runtime_env"
const runtimeEnvSym* = "nim_runtime_env"
when not defined(nimscript):
var runtimeEnv {.importcpp: runtimeEnvSym.}: GenodeEnvPtr
var runtimeEnv* {.importcpp: runtimeEnvSym.}: GenodeEnvPtr