From 82e7855b24575f3ae494898b4c3e767c3aa44fc5 Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 19 Jan 2021 00:04:55 +0800 Subject: [PATCH] add some new error codes maybe they don't belong here?? they are error codes for the GAM. --- xous-rs/src/definitions.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xous-rs/src/definitions.rs b/xous-rs/src/definitions.rs index c250566f0..054b33778 100644 --- a/xous-rs/src/definitions.rs +++ b/xous-rs/src/definitions.rs @@ -155,6 +155,8 @@ pub enum Error { InvalidPID = 21, UnknownError = 22, AccessDenied = 23, + UseBeforeInit = 24, + DoubleFree = 25, } impl Error { @@ -184,6 +186,8 @@ impl Error { 20 => InvalidThread, 21 => InvalidPID, 23 => AccessDenied, + 24 => UseBeforeInit, + 25 => DoubleFree, _ => UnknownError, } } @@ -213,6 +217,8 @@ impl Error { InvalidThread => 20, InvalidPID => 21, AccessDenied => 23, + UseBeforeInit => 24, + DoubleFree => 25, UnknownError => usize::MAX, } }