diff options
| author | Jon Santmyer <jon@jonsantmyer.com> | 2026-10-04 10:49:41 -0400 |
|---|---|---|
| committer | Jon Santmyer <jon@jonsantmyer.com> | 2026-10-04 10:49:41 -0400 |
| commit | 8d48bbd9746228b63bafa5f92b621998d7d8f3d3 (patch) | |
| tree | fbaba69059c2e28d5098da4c9be357c38e406626 /hal/untyped.c | |
| parent | 465cba0c00bfc5d89bf10ce353b0adf40bdc098d (diff) | |
| download | jove-kernel-8d48bbd9746228b63bafa5f92b621998d7d8f3d3.tar.gz jove-kernel-8d48bbd9746228b63bafa5f92b621998d7d8f3d3.tar.bz2 jove-kernel-8d48bbd9746228b63bafa5f92b621998d7d8f3d3.zip | |
move init fully to proc. remove init pages prealloc. prepare for scheduling
Diffstat (limited to 'hal/untyped.c')
| -rw-r--r-- | hal/untyped.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
