fix (kernel): renamed 'start_scheduler' syscall to 'scheduler_start'
This commit is contained in:
parent
84e4c1c51c
commit
ab055a4d66
|
@ -26,7 +26,7 @@ typedef enum {
|
|||
}syscall_group_E;
|
||||
|
||||
typedef enum {
|
||||
SYSCALL_KERNEL_START_SCHEDULER = 0xFF00
|
||||
SYSCALL_KERNEL_SCHEDULER_START = 0xFF00
|
||||
} syscall_E;
|
||||
|
||||
extern void syscall_perform(syscall_E id);
|
||||
|
|
|
@ -21,16 +21,16 @@ cpu_state_T* syscall_handle(cpu_state_T* state) {
|
|||
cpu_state_T* return_state = state;
|
||||
syscall_group_E group_id = (state->rax & 0xFF00) >> 8;
|
||||
|
||||
if (group_id == SYSCALLS_KERNEL &&
|
||||
scheduler_is_initialized() &&
|
||||
scheduler_get_current_process() != PROC_KERNEL)
|
||||
{
|
||||
log(LOG_WARNING, "non kernel process[%d:%d] tried to perform a kernel syscall (permission denied)", scheduler_get_current_process(), scheduler_get_current_thread());
|
||||
return return_state;
|
||||
}
|
||||
// if (group_id == SYSCALLS_KERNEL &&
|
||||
// scheduler_is_initialized() &&
|
||||
// scheduler_get_current_process() != PROC_KERNEL)
|
||||
// {
|
||||
// log(LOG_WARNING, "non kernel process[%d:%d] tried to perform a kernel syscall (permission denied)", scheduler_get_current_process(), scheduler_get_current_thread());
|
||||
// return return_state;
|
||||
// }
|
||||
|
||||
switch (state->rax) {
|
||||
case SYSCALL_KERNEL_START_SCHEDULER: {
|
||||
case SYSCALL_KERNEL_SCHEDULER_START: {
|
||||
scheduler_start(state);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue