Buncha changes and fixes

This commit is contained in:
2022-12-30 17:11:42 -06:00
parent 166841da51
commit c069866bc7
23 changed files with 151 additions and 103 deletions

View File

@@ -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

View File

@@ -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

View 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

View File

@@ -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