Merge branch 'master' of https://github.com/AbleTheAbove/ableos-wasm-loader
This commit is contained in:
commit
9e0d14ee00
|
@ -9,7 +9,7 @@ macro_rules! syscall_enum {
|
||||||
($($Variant:ident=$Value:expr,)*) => {
|
($($Variant:ident=$Value:expr,)*) => {
|
||||||
#[repr(usize)]
|
#[repr(usize)]
|
||||||
pub enum SysCall {
|
pub enum SysCall {
|
||||||
$($Variant=$Value),*
|
$($Variant = $Value),*
|
||||||
}
|
}
|
||||||
|
|
||||||
impl core::convert::From<usize> for SysCall {
|
impl core::convert::From<usize> for SysCall {
|
||||||
|
@ -43,8 +43,6 @@ syscall_enum! {
|
||||||
SET_HOSTNAME=13,
|
SET_HOSTNAME=13,
|
||||||
|
|
||||||
//File Related syscalls
|
//File Related syscalls
|
||||||
GET_CONFIG=20, // Get config
|
|
||||||
SET_CONFIG=21, // Set the config
|
|
||||||
//
|
//
|
||||||
MAKE_DIRECTORY=22, //
|
MAKE_DIRECTORY=22, //
|
||||||
DELETE_DIRECTORY=23, //
|
DELETE_DIRECTORY=23, //
|
||||||
|
@ -72,7 +70,7 @@ syscall_enum! {
|
||||||
SOCKET_CONNECT=40,
|
SOCKET_CONNECT=40,
|
||||||
SOCKET_DISCONNECT=41,
|
SOCKET_DISCONNECT=41,
|
||||||
SOCKET_SEND=42,
|
SOCKET_SEND=42,
|
||||||
SOCKET_RECIEVE=43,
|
SOCKET_RECEIVE=43,
|
||||||
|
|
||||||
EXIT=50,
|
EXIT=50,
|
||||||
EMPTY=0xFFFF,
|
EMPTY=0xFFFF,
|
||||||
|
|
Reference in a new issue