diff options
author | dzwdz | 2021-07-17 19:03:45 +0200 |
---|---|---|
committer | dzwdz | 2021-07-17 19:03:45 +0200 |
commit | f84c55f194df088c291fc4359ccec1305be456ce (patch) | |
tree | 0476907b089c174adc6e72cfe780134cbd9cbe89 /src/kernel/main.h | |
parent | 895108bbba356aa39920a42df1587211e424ef8b (diff) |
basic boot module support
This loads a file from the boot disk into memory. Currently it just gets
printed, but it's going to become a real executable soon.
Diffstat (limited to 'src/kernel/main.h')
-rw-r--r-- | src/kernel/main.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/kernel/main.h b/src/kernel/main.h index 6f27386..f7f5f04 100644 --- a/src/kernel/main.h +++ b/src/kernel/main.h @@ -1,3 +1,11 @@ #pragma once +#include <stddef.h> -void kmain(); +struct kmain_info { + struct { + void *at; // page aligned + size_t size; + } init; // a boot module loaded by GRUB, containing the initrd driver +}; + +void kmain(struct kmain_info); |