summaryrefslogtreecommitdiffstats
path: root/lib/libjove/syscall
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libjove/syscall')
-rw-r--r--lib/libjove/syscall/debug_putc.c4
-rw-r--r--lib/libjove/syscall/invoke-objdir.c6
-rw-r--r--lib/libjove/syscall/invoke-untyped.c6
-rw-r--r--lib/libjove/syscall/invoke.c2
4 files changed, 9 insertions, 9 deletions
diff --git a/lib/libjove/syscall/debug_putc.c b/lib/libjove/syscall/debug_putc.c
index 2d68ee1..9215a09 100644
--- a/lib/libjove/syscall/debug_putc.c
+++ b/lib/libjove/syscall/debug_putc.c
@@ -5,8 +5,8 @@
void
_syscall_debug_putc(char c)
{
- *((char*)_syscall_message_ptr) = c;
- register uint64_t box asm ("rdi") = _syscall_message_box;
+ *((char*)__jove_syscall_ptr) = c;
+ register uint64_t box asm ("rdi") = __jove_syscall_obj;
register uint64_t call asm ("rsi") = SYSCALL_DEBUG_PUTC;
__asm__ volatile("syscall"::: "memory");
diff --git a/lib/libjove/syscall/invoke-objdir.c b/lib/libjove/syscall/invoke-objdir.c
index 6ee39e4..6558d6d 100644
--- a/lib/libjove/syscall/invoke-objdir.c
+++ b/lib/libjove/syscall/invoke-objdir.c
@@ -7,7 +7,7 @@
int
_syscall_invoke_objdir_getmemb(KernelObjectDirectory *dir, uint8_t member, obj_type_t *result)
{
- uint8_t *syscallData = _syscall_message_ptr;
+ uint8_t *syscallData = __jove_syscall_ptr;
int syscall_at = 0;
obj_type_t *syscall_result;
@@ -24,7 +24,7 @@ _syscall_invoke_objdir_getmemb(KernelObjectDirectory *dir, uint8_t member, obj_t
int
_syscall_invoke_objdir_lastmemb(KernelObjectDirectory *dir, uint8_t *result)
{
- uint8_t *syscallData = _syscall_message_ptr;
+ uint8_t *syscallData = __jove_syscall_ptr;
int syscall_at = 0;
uint8_t *syscall_result;
@@ -44,7 +44,7 @@ _syscall_invoke_objdir_move(
KernelObjectDirectory *dest_dir,
uint8_t dest_memb)
{
- uint8_t *syscallData = _syscall_message_ptr;
+ uint8_t *syscallData = __jove_syscall_ptr;
int syscall_at = 0;
SYSCALL_PAYLOAD_PUTOBJ(syscallData, syscall_at, dir);
diff --git a/lib/libjove/syscall/invoke-untyped.c b/lib/libjove/syscall/invoke-untyped.c
index 3f718c2..470d19f 100644
--- a/lib/libjove/syscall/invoke-untyped.c
+++ b/lib/libjove/syscall/invoke-untyped.c
@@ -8,7 +8,7 @@
int
_syscall_invoke_untyped_size(KernelObjectUntyped *untyped, size_t *bytes)
{
- uint8_t *syscallData = _syscall_message_ptr;
+ uint8_t *syscallData = __jove_syscall_ptr;
int syscall_at = 0;
size_t *syscall_bytes;
@@ -24,7 +24,7 @@ _syscall_invoke_untyped_size(KernelObjectUntyped *untyped, size_t *bytes)
int
_syscall_invoke_untyped_split(KernelObjectUntyped *untyped, size_t bytes, KernelObjectUntyped *dest)
{
- uint8_t *syscallData = _syscall_message_ptr;
+ uint8_t *syscallData = __jove_syscall_ptr;
int syscall_at = 0;
SYSCALL_PAYLOAD_PUTOBJ(syscallData, syscall_at, untyped);
@@ -38,7 +38,7 @@ _syscall_invoke_untyped_split(KernelObjectUntyped *untyped, size_t bytes, Kernel
int
_syscall_invoke_untyped_alignment(KernelObjectUntyped *untyped, size_t *alignment)
{
- uint8_t *syscallData = _syscall_message_ptr;
+ uint8_t *syscallData = __jove_syscall_ptr;
int syscall_at = 0;
size_t *syscall_alignment;
diff --git a/lib/libjove/syscall/invoke.c b/lib/libjove/syscall/invoke.c
index e673623..66fa095 100644
--- a/lib/libjove/syscall/invoke.c
+++ b/lib/libjove/syscall/invoke.c
@@ -5,7 +5,7 @@
int
_syscall_invoke(void)
{
- register uint64_t box asm ("rdi") = _syscall_message_box;
+ register uint64_t box asm ("rdi") = __jove_syscall_obj;
register uint64_t call asm ("rsi") = SYSCALL_INVOKE;
int status = 0;