From 0726b60a6e32760fbadd1cdd39362c9c7a0fd9cc Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sun, 8 Apr 2018 17:29:30 -0400 Subject: file loading, switching, good! --- include/heap.h | 5 +++++ include/initrd.h | 1 + include/task.h | 2 ++ 3 files changed, 8 insertions(+) (limited to 'include') diff --git a/include/heap.h b/include/heap.h index 593ce09..343e983 100644 --- a/include/heap.h +++ b/include/heap.h @@ -23,6 +23,11 @@ #include +typedef struct { + uint32_t size; + void *next; +} __attribute__ ((packed)) alloc_t; + /** * Initializes memory management of the given heap. * No overflow stuff is done, so... diff --git a/include/initrd.h b/include/initrd.h index 3957066..47f81c4 100644 --- a/include/initrd.h +++ b/include/initrd.h @@ -38,6 +38,7 @@ uint8_t initrd_validate(void); * @return the file's name, or zero if not found */ char *initrd_getfile(uint32_t index); +char *initrd_getname(uint32_t index); /** * Gets contents of the given file. diff --git a/include/task.h b/include/task.h index 555a470..0eb48c0 100644 --- a/include/task.h +++ b/include/task.h @@ -54,4 +54,6 @@ void task_start(void (*task)(void), uint16_t stackSize); */ void task_hold(uint8_t hold); +//int fork(void); + #endif // TASK_H_ -- cgit v1.2.3