diff options
author | Marvin Borner | 2021-07-06 22:07:04 +0200 |
---|---|---|
committer | Marvin Borner | 2021-07-06 22:07:04 +0200 |
commit | b2880945ae17ad857bd425540acd3dc75b2cff6b (patch) | |
tree | f5dea0028fb5e2b9072aa15f60c497bc7e20d13b /example/mb1/main.c | |
parent | 23aa6f84539ba320a91235fb81681d0754178f62 (diff) |
Basic multiboot 1 detection and verification
Diffstat (limited to 'example/mb1/main.c')
-rw-r--r-- | example/mb1/main.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/example/mb1/main.c b/example/mb1/main.c new file mode 100644 index 0000000..0174803 --- /dev/null +++ b/example/mb1/main.c @@ -0,0 +1,16 @@ +// MIT License, Copyright (c) 2021 Marvin Borner + +typedef unsigned int u32; + +int kernel_main(u32 magic, u32 addr, u32 esp); // Decl +int kernel_main(u32 magic, u32 addr, u32 esp) +{ + (void)magic; + (void)addr; + (void)esp; + + while (1) + ; + + return 1; +} |