summaryrefslogtreecommitdiffstats
path: root/hal/memory.h
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2026-09-07 19:19:24 -0400
committerJon Santmyer <jon@jonsantmyer.com>2026-09-07 19:19:24 -0400
commitdf0688efa326a03a22bcbc36d1900926b7b1c986 (patch)
treec67df82b0a6cd94693278a809ed0c9a69daf840f /hal/memory.h
parent4ca0bdf61196d0c3fd3f0fdbfb2d72481025cca2 (diff)
downloadjove-kernel-df0688efa326a03a22bcbc36d1900926b7b1c986.tar.gz
jove-kernel-df0688efa326a03a22bcbc36d1900926b7b1c986.tar.bz2
jove-kernel-df0688efa326a03a22bcbc36d1900926b7b1c986.zip
split syscall info into api subfolder. untyped syscalls
Diffstat (limited to 'hal/memory.h')
-rw-r--r--hal/memory.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/hal/memory.h b/hal/memory.h
index 4d866d0..659263c 100644
--- a/hal/memory.h
+++ b/hal/memory.h
@@ -1,16 +1,24 @@
#ifndef _JOVE_HAL_MEMORY_H
#define _JOVE_HAL_MEMORY_H 1
-#include <stddef.h>
-#include <stdint.h>
+#include "obj.h"
typedef struct jove_obj_untyped
{
size_t limit;
} jove_untyped_t;
+#define JOVE_UNTYPED_MINSIZE 0x10
+
void mem_setup_untyped(void);
void *phys_tovirt(uintptr_t phys);
+size_t untyped_size(jove_owned_obj_t *tgt);
+size_t untyped_align(jove_owned_obj_t *tgt);
+
+int untyped_split(jove_owned_obj_t *tgt, jove_owned_obj_t *dst, size_t bytes);
+int untyped_merge(jove_owned_obj_t *a, jove_owned_obj_t *b);
+int untyped_retype(jove_owned_obj_t *tgt, uint8_t newtype);
+
#endif