Kill a process that does a wrong system call

This commit is contained in:
Baptiste Wicht 2016-09-28 16:43:39 +02:00
parent 3c253353b8
commit 3d30a355af
No known key found for this signature in database
GPG Key ID: C5566B6C7F884532

View File

@ -590,6 +590,8 @@ void system_call_entry(interrupt::syscall_regs* regs){
logging::logf(logging::log_level::ERROR, "Invalid system call %h from %u\n", code, scheduler::get_pid()); logging::logf(logging::log_level::ERROR, "Invalid system call %h from %u\n", code, scheduler::get_pid());
k_print_line("Invalid system call"); k_print_line("Invalid system call");
scheduler::kill_current_process();
} }
void install_system_calls(){ void install_system_calls(){