diff options
author | Anton Kling <anton@kling.gg> | 2023-10-31 14:28:15 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-10-31 14:28:15 +0100 |
commit | 6c227820a80fb18c9c04b588aa1cb7aa23fbc4ac (patch) | |
tree | ccb9849884f92dadc4801d3b93ba351f8a962630 /kernel/sched | |
parent | b416c3704a36f0c055fdb51ad014c9f4787aee91 (diff) |
Kernel: Remove all O0 optimizations on functions.
The kernel can now fully compile under O3 without any noticable
problems :)
Diffstat (limited to 'kernel/sched')
-rw-r--r-- | kernel/sched/scheduler.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |