New repo setup

This commit is contained in:
2024-05-28 14:26:46 -05:00
commit 9ee197f57b
97 changed files with 11047 additions and 0 deletions

6
include/types/physaddr.h Normal file
View File

@@ -0,0 +1,6 @@
#ifndef KERNEL_PHYSADDR_H
#define KERNEL_PHYSADDR_H
typedef unsigned long physaddr_t;
#endif

6
include/types/pid.h Normal file
View File

@@ -0,0 +1,6 @@
#ifndef KERNEL_PID_H
#define KERNEL_PID_H
typedef unsigned int pid_t;
#endif

28
include/types/status.h Normal file
View File

@@ -0,0 +1,28 @@
#ifndef KERNEL_STATUS_H
#define KERNEL_STATUS_H
#ifdef __cplusplus
extern "C"
{
#endif
enum error_t
{
ENONE = 0,
EUNKNOWN = -1,
ENOSYS = -2,
EEOF = -3,
ENOFILE = -4,
ENOMEM = -5,
EINVAL = -6,
EIO = -7,
EEXISTS = -8,
EPIPE = -9,
EFULL = -10
};
#ifdef __cplusplus
}
#endif
#endif

36
include/types/syscallid.h Normal file
View File

@@ -0,0 +1,36 @@
#ifndef KERNEL_SYSCALLID_H
#define KERNEL_SYSCALLID_H
#ifdef __cplusplus
extern "C"
{
#endif
typedef enum syscallid_t
{
SYS_PRINTK = 0,
SYS_MMAP,
SYS_MUNMAP,
SYS_CLONE,
SYS_TERMINATE,
SYS_EXEC,
SYS_YIELD,
SYS_SIGRAISE,
SYS_SIGRET,
SYS_SIGWAIT,
SYS_SIGACTION,
SYS_OPEN,
SYS_CLOSE,
SYS_CREATE,
SYS_UNLINK,
SYS_READ,
SYS_WRITE,
SYS_FDDUP,
SYS_CREATE_PIPE
} syscallid_t;
#ifdef __cplusplus
}
#endif
#endif