mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
-1 is no longer an allowed system call.
This treats a nasty bug where forking and exiting before the child causes the kernel to panic, because the syscall -1 is run, which just contains a trash value that happened to be 0. The cause is still unknown. Might be the scheduler. This won't help me sleep at night.
This commit is contained in:
parent
b15763b2de
commit
46c0cc6a12
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ syscall_handler:
|
|||
|
||||
# Make sure the requested system call is valid.
|
||||
cmp SYSCALL_MAX, %eax
|
||||
jl valid_eax
|
||||
jb valid_eax
|
||||
xorl %eax, %eax
|
||||
|
||||
valid_eax:
|
||||
|
|
Loading…
Add table
Reference in a new issue