kernel+libluna: Remove console_write entirely
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
cb1ef3e404
commit
49952320d6
@ -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
|
||||
|
@ -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 };
|
||||
}
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user