Use deadlines for sleep, rather than calculating the amount of remaining
time.
This keeps time consistent, because it means we don't have to
recalculate all sleeps whenever one expires.
It also allows us to take advantage of the hardware which will fire an
interrupt if we schedule a wakeup in the past.
Signed-off-by: Sean Cross <sean@xobs.io>
Servers will, by default, get randomly-assigned SIDs. Certain servers
will want to have well-known SIDs, such as the log server or the
nameserver. These will use a separate call in order to perform this
priveledged operation.
A subsequent patch will add `CreateServer`.
Signed-off-by: Sean Cross <sean@xobs.io>
This is responsible for preemption in the system. Move it to the timer
server since it seems to make more sense to have there.
Signed-off-by: Sean Cross <sean@xobs.io>
Previously UTRA didn't have an interrupt, so we just made one up. Use
the correct interrupt to get things working on hardware.
Signed-off-by: Sean Cross <sean@xobs.io>