diff options
| author | Arslaan Pathan <[email protected]> | 2026-03-20 13:12:45 +1300 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-03-20 13:12:45 +1300 |
| commit | bebf05d0c10d7eae0861112a8491aad08403c039 (patch) | |
| tree | e461648de2677b2886ae7e5b4e6780b1e6993786 /src/kernel.c | |
| parent | 7e8df0108eb93c0ca63baa396c7ebadada5931bd (diff) | |
| download | FrenchToastOS-bebf05d0c10d7eae0861112a8491aad08403c039.tar.xz FrenchToastOS-bebf05d0c10d7eae0861112a8491aad08403c039.zip | |
try ask grub for framebuffer? one can hope
Diffstat (limited to 'src/kernel.c')
| -rw-r--r-- | src/kernel.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/kernel.c b/src/kernel.c index ae50def..9697a83 100644 --- a/src/kernel.c +++ b/src/kernel.c @@ -5,14 +5,14 @@ This software is licensed under the ARPL. See LICENSE for details. */ #include <stddef.h> #include <stdint.h> -/* Check if the compiler thinks you are targeting the wrong operating system. */ +/* check if compiler thinks we are targeting incorrect OS. */ #if defined(__linux__) -#error "you are not using a cross-compiler, this is bad. use an elf cross-compiler for ix86 targets, for example, i686-elf-gcc" +#error "you are not using a cross-compiler, this is bad. use an elf cross-compiler for ix86 targets, for example, i386-elf-gcc" #endif -/* This operating system will only work for the 32-bit ix86 targets. */ +/* OS only works on 32bit ix86 */ #if !defined(__i386__) -#error "this operating system needs to be compiled with a ix86-elf compiler" +#error "this operating system is only supported on ix86 targets. use an elf cross-compiler for ix86 targets, for example, i386-elf-gcc" #endif /* Hardware text mode color constants. */ @@ -123,6 +123,8 @@ void kernel_main(void) terminal_writestring("loading FrenchToastOS...\n"); terminal_writestring("developed by Arslaan Pathan"); + /* if there is nothing else to do, halt, or the computer commit die */ + /* our boot.s code does this already, but better to be safe than f**ked */ while (1) { __asm__ __volatile__ ("hlt"); } |
