Move status codes into a separate header
All checks were successful
Build documentation / build-and-deploy (push) Successful in 36s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 36s
This commit is contained in:
13
include/m/status.h
Normal file
13
include/m/status.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#ifndef _M_STATUS_H
|
||||
#define _M_STATUS_H
|
||||
|
||||
#define ST_OK 0
|
||||
#define ST_SYSCALL_NOT_FOUND 1
|
||||
#define ST_UNALIGNED 2
|
||||
#define ST_OOM_ERROR 3
|
||||
#define ST_NOT_FOUND 4
|
||||
#define ST_BAD_ADDRESS_SPACE 5
|
||||
#define ST_PERMISSION_ERROR 6
|
||||
#define ST_BAD_RESOURCE 7
|
||||
|
||||
#endif // _M_STATUS_H
|
||||
@@ -13,13 +13,4 @@
|
||||
#define SYS_PROC_SPAWN_THREAD 10
|
||||
#define SYS_PROC_SCHED 11
|
||||
|
||||
#define SR_OK 0
|
||||
#define SR_SYSCALL_NOT_FOUND 1
|
||||
#define SR_UNALIGNED 2
|
||||
#define SR_OOM_ERROR 3
|
||||
#define SR_NOT_FOUND 4
|
||||
#define SR_BAD_ADDRESS_SPACE 5
|
||||
#define SR_PERMISSION_ERROR 6
|
||||
#define SR_BAD_RESOURCE 7
|
||||
|
||||
#endif // _M_SYSCALL_DEFS_H
|
||||
|
||||
Reference in New Issue
Block a user