Buncha changes and fixes
This commit is contained in:
@@ -1,14 +1,6 @@
|
||||
#ifndef _QUARK_PHYSADDR_H
|
||||
#define _QUARK_PHYSADDR_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#if defined __i386__ || __arm__
|
||||
typedef uint32_t physaddr_t;
|
||||
#elif defined __x86_64__ || __aarch64__
|
||||
typedef uint64_t physaddr_t;
|
||||
#else
|
||||
typedef uint64_t physaddr_t;
|
||||
#endif
|
||||
typedef unsigned long int physaddr_t;
|
||||
|
||||
#endif
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef _QUARK_ERROR_H
|
||||
#define _QUARK_ERROR_H
|
||||
|
||||
enum error_t
|
||||
typedef enum
|
||||
{
|
||||
ENONE = 0,
|
||||
ENULLPTR,
|
||||
@@ -15,6 +15,6 @@ enum error_t
|
||||
EPERM,
|
||||
EBUSY,
|
||||
EEXITED
|
||||
};
|
||||
} error_t;
|
||||
|
||||
#endif
|
||||
11
include/types/syscallarg.h
Normal file
11
include/types/syscallarg.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#ifndef _QUARK_SYSCALLARG_H
|
||||
#define _QUARK_SYSCALLARG_H
|
||||
|
||||
typedef union
|
||||
{
|
||||
long int signed_int;
|
||||
unsigned long int unsigned_int;
|
||||
void *ptr;
|
||||
} syscall_arg_t;
|
||||
|
||||
#endif
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef QUARK_SYSCALLID_H
|
||||
#define QUARK_SYSCALLID_H
|
||||
|
||||
enum syscall_id_t
|
||||
typedef enum
|
||||
{
|
||||
SYSCALL_TEST = 1,
|
||||
SYSCALL_MMAP,
|
||||
@@ -12,6 +12,6 @@ enum syscall_id_t
|
||||
SYSCALL_RECEIVE,
|
||||
SYSCALL_OPEN_PORT,
|
||||
SYSCALL_CLOSE_PORT
|
||||
};
|
||||
} syscall_id_t;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user