kernel+libluna: Remove console_write entirely
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2023-03-18 20:12:59 +01:00
parent cb1ef3e404
commit 49952320d6
Signed by: apio
GPG Key ID: B8A7D06E42258954
3 changed files with 2 additions and 18 deletions

View File

@ -23,7 +23,6 @@ set(SOURCES
src/thread/Scheduler.cpp
src/sys/Syscall.cpp
src/sys/exit.cpp
src/sys/console_write.cpp
src/sys/clock_gettime.cpp
src/sys/mmap.cpp
src/sys/usleep.cpp

View File

@ -1,15 +0,0 @@
#include "memory/MemoryManager.h"
#include "sys/Syscall.h"
#include "video/TextConsole.h"
Result<u64> sys_console_write(Registers*, SyscallArgs args)
{
char* ptr = (char*)args[0];
usize size = (usize)args[1];
if (!MemoryManager::validate_user_read(ptr, size)) return err(EFAULT);
while (size--) { TextConsole::putchar(*ptr++); }
return { 0 };
}

View File

@ -1,8 +1,8 @@
#pragma once
#define enumerate_syscalls(_e) \
_e(exit) _e(console_write) _e(clock_gettime) _e(mmap) _e(munmap) _e(usleep) _e(open) _e(close) _e(read) _e(getpid) \
_e(write) _e(lseek) _e(mkdir) _e(exec) _e(mknod)
_e(exit) _e(clock_gettime) _e(mmap) _e(munmap) _e(usleep) _e(open) _e(close) _e(read) _e(getpid) _e(write) \
_e(lseek) _e(mkdir) _e(exec) _e(mknod)
enum Syscalls
{