From add6efeb22ffb7695d5c9addcef073fc653f700e Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 22 Feb 2020 17:22:17 +0100 Subject: Well basically nothing really works I guess I've worked quite a while on several small things which I didn't commit but I'm going away for a week (holiday) soooo I synced these useless and dumb files :) --- src/kernel/fs/load.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/kernel/fs/load.h') diff --git a/src/kernel/fs/load.h b/src/kernel/fs/load.h index 7a0ec06..4ba545f 100644 --- a/src/kernel/fs/load.h +++ b/src/kernel/fs/load.h @@ -16,4 +16,20 @@ struct font { void load_binaries(); +typedef struct { + char *name; + + void *(*probe)(uint8_t *buf); + + uint8_t (*start)(uint8_t *buf, void *priv); +} loader_t; + +void loader_init(); + +void register_loader(loader_t *load); + +uint8_t exec_start(uint8_t *buf); + +uint32_t loader_get_unused_load_location(); + #endif -- cgit v1.2.3