From d8d0c3838a475618815157fbc0db7eac20bb99f3 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Fri, 27 Mar 2020 13:32:41 +0800 Subject: [PATCH] xous: add context id and context error Signed-off-by: Sean Cross --- xous-rs/src/definitions.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xous-rs/src/definitions.rs b/xous-rs/src/definitions.rs index d7c7f6c57..a50eb2bd2 100644 --- a/xous-rs/src/definitions.rs +++ b/xous-rs/src/definitions.rs @@ -15,6 +15,9 @@ pub type SID = (usize, usize, usize, usize); /// Connection ID pub type CID = usize; +/// Context ID +pub type CtxID = usize; + /// Equivalent to a RISC-V Hart ID pub type CpuID = usize; @@ -37,7 +40,8 @@ pub enum Error { Timeout = 13, InternalError = 14, ServerQueueFull = 15, - UnhandledSyscall = 16, + ContextNotAvailable = 16, + UnhandledSyscall = 17, } #[repr(C)]