summaryrefslogtreecommitdiffstats
path: root/hal
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2026-09-19 20:32:34 -0400
committerJon Santmyer <jon@jonsantmyer.com>2026-09-19 20:32:34 -0400
commitb6765812f7da9feccc271e8e0b06f166e8054386 (patch)
treeb4d4b437d6371d103328893acfdf7199efdb850f /hal
parent50a05d7e173f1d610297219925b146f7ef50eef5 (diff)
downloadjove-kernel-b6765812f7da9feccc271e8e0b06f166e8054386.tar.gz
jove-kernel-b6765812f7da9feccc271e8e0b06f166e8054386.tar.bz2
jove-kernel-b6765812f7da9feccc271e8e0b06f166e8054386.zip
fix bugs with map using untyped obj
Diffstat (limited to 'hal')
-rw-r--r--hal/memory.h2
-rw-r--r--hal/untyped.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/hal/memory.h b/hal/memory.h
index 7577c17..47dbf0a 100644
--- a/hal/memory.h
+++ b/hal/memory.h
@@ -27,7 +27,7 @@ int pagedir_map_untyped_frame(
uintptr_t vptr, struct syscall_pagedir_flags flg);
int pagedir_map_untyped_table(
jove_owned_obj_t *tgt, jove_owned_obj_t *untyped_obj,
- uintptr_t vptr, struct syscall_pagedir_flags flg);
+ uintptr_t vptr);
int pagedir_unmap_untyped_frame(
jove_owned_obj_t *tgt, jove_owned_obj_t *dst, uintptr_t vptr);
diff --git a/hal/untyped.c b/hal/untyped.c
index e76dd0e..6957175 100644
--- a/hal/untyped.c
+++ b/hal/untyped.c
@@ -18,7 +18,6 @@ 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(bytes < JOVE_UNTYPED_MINSIZE) return EBADARG;
if(tgt_untyped->limit - bytes < JOVE_UNTYPED_MINSIZE) return ETOOSMALL;
tgt_untyped->limit -= bytes;