diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2018-04-08 17:29:30 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2018-04-08 17:29:30 -0400 |
commit | 0726b60a6e32760fbadd1cdd39362c9c7a0fd9cc (patch) | |
tree | 38d594dd9c259f13fc6d867da349cb96a8c25158 /include | |
parent | 7eb572702ca012a89370cc94a297eeb346a8dee9 (diff) |
file loading, switching, good!
Diffstat (limited to 'include')
-rw-r--r-- | include/heap.h | 5 | ||||
-rw-r--r-- | include/initrd.h | 1 | ||||
-rw-r--r-- | include/task.h | 2 |
3 files changed, 8 insertions, 0 deletions
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 <stdint.h> +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_ |