From 8d48bbd9746228b63bafa5f92b621998d7d8f3d3 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Sun, 4 Oct 2026 10:49:41 -0400 Subject: move init fully to proc. remove init pages prealloc. prepare for scheduling --- hal/untyped.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hal/untyped.c') diff --git a/hal/untyped.c b/hal/untyped.c index 6957175..ca69228 100644 --- a/hal/untyped.c +++ b/hal/untyped.c @@ -18,7 +18,7 @@ int untyped_split(jove_owned_obj_t *tgt, jove_owned_obj_t *dst, size_t bytes) { jove_untyped_t *tgt_untyped = obj_deref(tgt); - if(tgt_untyped->limit - bytes < JOVE_UNTYPED_MINSIZE) return ETOOSMALL; + if(tgt_untyped->limit - bytes < JOVE_UNTYPED_MINSIZE) return -ETOOSMALL; tgt_untyped->limit -= bytes; obj_settype(dst, JOVE_OBJ_UNTYPED); @@ -35,7 +35,7 @@ untyped_merge(jove_owned_obj_t *a, jove_owned_obj_t *b) jove_untyped_t *a_untyped = obj_deref(a); jove_untyped_t *b_untyped = obj_deref(b); if((uintptr_t)a_untyped + a_untyped->limit == (uintptr_t)b_untyped) { - return EBADARG; + return -EBADARG; } if((uintptr_t)b_untyped + b_untyped->limit == (uintptr_t)a_untyped) { return untyped_merge(b, a); -- cgit v1.2.3