summaryrefslogtreecommitdiffstats
path: root/lib/libjove/syscall/debug_putc.c
blob: 9215a09669e5d52f7665991565090a47b16dd0a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "jove/syscall.h"
#include "jove/jove.h"
#include <kernel/syscall.h>

void
_syscall_debug_putc(char c)
{
    *((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");
}