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;
|
}syscall_group_E;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
SYSCALL_KERNEL_START_SCHEDULER = 0xFF00
|
SYSCALL_KERNEL_SCHEDULER_START = 0xFF00
|
||||||
} syscall_E;
|
} syscall_E;
|
||||||
|
|
||||||
extern void syscall_perform(syscall_E id);
|
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;
|
cpu_state_T* return_state = state;
|
||||||
syscall_group_E group_id = (state->rax & 0xFF00) >> 8;
|
syscall_group_E group_id = (state->rax & 0xFF00) >> 8;
|
||||||
|
|
||||||
if (group_id == SYSCALLS_KERNEL &&
|
// if (group_id == SYSCALLS_KERNEL &&
|
||||||
scheduler_is_initialized() &&
|
// scheduler_is_initialized() &&
|
||||||
scheduler_get_current_process() != PROC_KERNEL)
|
// 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());
|
// 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;
|
// return return_state;
|
||||||
}
|
// }
|
||||||
|
|
||||||
switch (state->rax) {
|
switch (state->rax) {
|
||||||
case SYSCALL_KERNEL_START_SCHEDULER: {
|
case SYSCALL_KERNEL_SCHEDULER_START: {
|
||||||
scheduler_start(state);
|
scheduler_start(state);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue