mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-14 06:56:51 -04:00
Remove system calls
This commit is contained in:
parent
e7b61d9169
commit
e86258e15b
@ -46,34 +46,6 @@ void sc_log_string(interrupt::syscall_regs* regs){
|
||||
logging::logf(logging::log_level::USER, "%s\n", m);
|
||||
}
|
||||
|
||||
void sc_get_input(interrupt::syscall_regs* regs){
|
||||
auto ttyid = scheduler::get_process(scheduler::get_pid()).tty;
|
||||
auto& tty = stdio::get_terminal(ttyid);
|
||||
|
||||
regs->rax = tty.read_input_can(reinterpret_cast<char*>(regs->rbx), regs->rcx);
|
||||
}
|
||||
|
||||
void sc_get_input_timeout(interrupt::syscall_regs* regs){
|
||||
auto ttyid = scheduler::get_process(scheduler::get_pid()).tty;
|
||||
auto& tty = stdio::get_terminal(ttyid);
|
||||
|
||||
regs->rax = tty.read_input_can(reinterpret_cast<char*>(regs->rbx), regs->rcx, regs->rdx);
|
||||
}
|
||||
|
||||
void sc_get_input_raw(interrupt::syscall_regs* regs){
|
||||
auto ttyid = scheduler::get_process(scheduler::get_pid()).tty;
|
||||
auto& tty = stdio::get_terminal(ttyid);
|
||||
|
||||
regs->rax = tty.read_input_raw();
|
||||
}
|
||||
|
||||
void sc_get_input_raw_timeout(interrupt::syscall_regs* regs){
|
||||
auto ttyid = scheduler::get_process(scheduler::get_pid()).tty;
|
||||
auto& tty = stdio::get_terminal(ttyid);
|
||||
|
||||
regs->rax = tty.read_input_raw(regs->rbx);
|
||||
}
|
||||
|
||||
void sc_set_canonical(interrupt::syscall_regs* regs){
|
||||
auto ttyid = scheduler::get_process(scheduler::get_pid()).tty;
|
||||
auto& tty = stdio::get_terminal(ttyid);
|
||||
@ -533,22 +505,6 @@ void system_call_entry(interrupt::syscall_regs* regs){
|
||||
sc_sbrk(regs);
|
||||
break;
|
||||
|
||||
case 0x10:
|
||||
sc_get_input(regs);
|
||||
break;
|
||||
|
||||
case 0x11:
|
||||
sc_get_input_timeout(regs);
|
||||
break;
|
||||
|
||||
case 0x12:
|
||||
sc_get_input_raw(regs);
|
||||
break;
|
||||
|
||||
case 0x13:
|
||||
sc_get_input_raw_timeout(regs);
|
||||
break;
|
||||
|
||||
case 0x20:
|
||||
sc_set_canonical(regs);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user