proc: hack in special file descriptors

The previos commit broke executions of all program files due to a NULL
memory access when inserting special file descriptors. This will be
replaced when some sort of /dev fs is implemented
This commit is contained in:
Michael Shaw 2024-01-24 18:49:06 -05:00
commit e2ea205129
5 changed files with 28 additions and 11 deletions

View file

@ -28,7 +28,7 @@
#define O_TRUNC 0x0010
#define O_APPEND 0x0020
#define FD_TYPE_CHARDEV 0x0001
#define FTYPE_CHARDEV 0x0001
typedef uint32_t ino_t;
typedef uint8_t ftype_t;

View file

@ -4,7 +4,6 @@
#include <kernel/common.h>
#include <kernel/rbtree.h>
#include <kernel/proc.h>
#define BBMAP_FREE 0
#define BBMAP_SPLIT 1
@ -33,6 +32,8 @@ genrw(ds);
#undef genrw
struct proc;
struct page { /* I would rather refer to this as a struct */
union {
struct {