Implement syscalls, hello world from userspace

This commit is contained in:
2025-09-02 23:51:14 +02:00
parent 920de10025
commit 8a12f23b69
24 changed files with 313 additions and 44 deletions

View File

@ -1,13 +1,16 @@
#ifndef ERRORS_H_
#define ERRORS_H_
#define E_OK 0
#define E_NOMEMORY -1
#define E_UNKNOWN_FSTYPE -2
#define E_NOENTRY -3
#define E_OUTOFBOUNDS -4
#define E_UNKNOWN_SDTYPE -5
#define E_TODO -6
#define E_BADIO -7
enum {
E_OK = 0,
E_NOMEMORY = -1,
E_UNKNOWN_FSTYPE = -2,
E_NOENTRY = -3,
E_OUTOFBOUNDS = -4,
E_UNKNOWN_SDTYPE = -5,
E_TODO = -6,
E_BADIO = -7,
E_BADSYSCALL = -8,
};
#endif // ERRORS_H_