diff options
author | Benji Dial <benji6283@gmail.com> | 2021-03-04 14:57:31 -0500 |
---|---|---|
committer | Benji Dial <benji6283@gmail.com> | 2021-03-04 14:57:31 -0500 |
commit | 86af7f631080bc4b45846bd7f382c4cedcbec2b4 (patch) | |
tree | d92510da292edeaacdebb2b84fc5fe61e1b9159f /src/kernel/main.c | |
parent | 922470255bef5d09e2c12cc2b6597e629f3b2581 (diff) | |
download | portland-os-86af7f631080bc4b45846bd7f382c4cedcbec2b4.tar.gz |
making fs drivers ignore already open files during kernel setup and when opening init for the first time
Diffstat (limited to 'src/kernel/main.c')
-rw-r--r-- | src/kernel/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kernel/main.c b/src/kernel/main.c index 36b5fc1..9699029 100644 --- a/src/kernel/main.c +++ b/src/kernel/main.c @@ -38,6 +38,8 @@ void main() { init_ide(); //other drive drivers + ignore_already_open = true; + init_log(); init_settings(); @@ -94,6 +96,8 @@ void main() { if (!try_elf_run(drives, "bin/init", "", 0)) PANIC("Failed to load init program."); + ignore_already_open = false; + logf(LOG_INFO, "Switching to init task."); _start_user_mode(); |