mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Prevent the kernel from calling system calls.
This commit is contained in:
parent
60d23eac19
commit
fcc6147c5c
1 changed files with 8 additions and 14 deletions
|
@ -22,25 +22,17 @@
|
|||
|
||||
******************************************************************************/
|
||||
|
||||
#ifdef SORTIX_KERNEL
|
||||
#warning ===
|
||||
#warning Sortix does not support syscalls from within the kernel, building this part of LibMaxsi should not be needed, and should not be used in kernel mode
|
||||
#warning ===
|
||||
#else
|
||||
|
||||
#ifndef LIBMAXSI_SYSCALL_H
|
||||
#define LIBMAXSI_SYSCALL_H
|
||||
|
||||
namespace Maxsi
|
||||
{
|
||||
#ifdef SORTIX_KERNEL
|
||||
#warning ===
|
||||
#warning ===
|
||||
#warning ===
|
||||
#warning ===
|
||||
#warning ===
|
||||
#warning Sortix does not support syscalls from within the kernel, building this part of LibMaxsi should not be needed, and should not be used in kernel mode
|
||||
#warning ===
|
||||
#warning ===
|
||||
#warning ===
|
||||
#warning ===
|
||||
#warning ===
|
||||
#endif
|
||||
|
||||
#define DECL_SYSCALL0(type,fn) type fn();
|
||||
#define DECL_SYSCALL1(type,fn,p1) type fn(p1);
|
||||
#define DECL_SYSCALL2(type,fn,p1,p2) type fn(p1,p2);
|
||||
|
@ -241,3 +233,5 @@ namespace Maxsi
|
|||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue