Due to an initial misunderstanding of how the RISC-V is architected,
contexts were going to be an emergent property of the kernel.
However, after further consideration, contexts must now be baked into
the kernel. Switching between contexts can be handled by the scheduler,
but the kernel must keep track of processor registers.
Keep track of context IDs and ensure they are sane. With this patch,
interrupts work, as does basic context switching.
Signed-off-by: Sean Cross <sean@xobs.io>
Message structs are used to pass memory between processes. Rework how
this struct is laid out so as to better describe this process.
Signed-off-by: Sean Cross <sean@xobs.io>
This is required because server IDs are 128 bits, but we only have
enough space for 32 bits in the message.
This is fine, because it means we can drop "Connect" permissions to
prevent compromised clients from making new connections.
Signed-off-by: Sean Cross <sean@xobs.io>