From 6c227820a80fb18c9c04b588aa1cb7aa23fbc4ac Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Tue, 31 Oct 2023 14:28:15 +0100 Subject: Kernel: Remove all O0 optimizations on functions. The kernel can now fully compile under O3 without any noticable problems :) --- kernel/sched/scheduler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kernel/sched') diff --git a/kernel/sched/scheduler.c b/kernel/sched/scheduler.c index a6ace7d..697bcda 100644 --- a/kernel/sched/scheduler.c +++ b/kernel/sched/scheduler.c @@ -93,7 +93,7 @@ int get_free_fd(process_t *p, int allocate) { void tasking_init(void) { current_task = ready_queue = create_process(NULL); } int i = 0; -void __attribute__((optimize("O0"))) free_process(void) { +void free_process(void) { kprintf("Exiting process: %s\n", get_current_task()->program_name); // free_process() will purge all contents such as allocated frames // out of the current process. This will be called by exit() and @@ -212,7 +212,7 @@ int exec(const char *filename, char **argv) { return 0; } -int __attribute__((optimize("O0"))) fork(void) { +int fork(void) { process_t *parent_task = (process_t *)current_task; process_t *new_task = create_process(parent_task); -- cgit v1.2.3