diff --git a/src/debug/stacktrace.c b/src/debug/stacktrace.c index 1717663..1f9c27c 100644 --- a/src/debug/stacktrace.c +++ b/src/debug/stacktrace.c @@ -20,7 +20,7 @@ void debug_stack_trace(unsigned int max_frames) { DEBUG("*** begin stack trace ***"); if (init.terminal) { - printf("\r\n*** begin stack trace ***\r\n"); + printf("\r\n\x1b[48;5;232m\x1b[38;5;231m*** begin stack trace ***\r\n"); } // Thanks GCC :) uintptr_t* rbp = (uintptr_t*)__builtin_frame_address(0); @@ -46,7 +46,7 @@ void debug_stack_trace(unsigned int max_frames) rbp = next_rbp; } if (init.terminal) { - printf("*** end stack trace ***"); + printf("*** end stack trace ***[0m"); } DEBUG("*** end stack trace ***"); } diff --git a/src/idt/idt.h b/src/idt/idt.h index de2c166..b74fb56 100644 --- a/src/idt/idt.h +++ b/src/idt/idt.h @@ -9,7 +9,7 @@ #include -void idt_init(); +void idt_init(void); struct interrupt_descriptor { uint16_t address_low; diff --git a/src/io/kbd/ps2.h b/src/io/kbd/ps2.h index a1d4860..c9aed30 100644 --- a/src/io/kbd/ps2.h +++ b/src/io/kbd/ps2.h @@ -7,7 +7,7 @@ #ifndef PS2_H #define PS2_H -void keyboard_handler(); +void keyboard_handler(void); #define SHIFT_PRESSED_BIT 0b00000001 #define ALT_PRESSED_BIT 0b00000010 diff --git a/src/io/serial/serial.h b/src/io/serial/serial.h index b60c488..1106460 100644 --- a/src/io/serial/serial.h +++ b/src/io/serial/serial.h @@ -13,7 +13,7 @@ void outb(int port, unsigned char data); unsigned char inb(int port); -int serial_init(); +int serial_init(void); void skputs(const char* str); void skputc(char c); diff --git a/src/io/term/term.h b/src/io/term/term.h index b470c1b..ee15ea6 100644 --- a/src/io/term/term.h +++ b/src/io/term/term.h @@ -9,6 +9,6 @@ void kputs(const char* str); void _putchar(char character); -void term_init(); +void term_init(void); #endif diff --git a/src/kmain.c b/src/kmain.c index 5a9b7bc..d75831b 100644 --- a/src/kmain.c +++ b/src/kmain.c @@ -64,15 +64,10 @@ extern struct process_t* processes_list; extern struct process_t* current_process; struct process_t* idle_proc; -bool iran = false; - // Never gets executed although pedicel is scheduled? void pedicel_main(void* arg) { - //panic(NULL, "test"); - bool iran = true; - // FROM THE NEXT LINE ONWARDS, CANNOT WRITE TO FRAMEBUFFER WITHOUT PAGE FAULT! - //printf("\n\nWelcome to PepperOS! Pedicel speaking.\nNothing left to do, halting the system!"); + printf("\n\nWelcome to PepperOS! Pedicel speaking.\r\nNothing left to do, let's go idle!"); } void idle_main(void* arg) diff --git a/src/mem/gdt/gdt.h b/src/mem/gdt/gdt.h index 33f744e..abe3eba 100644 --- a/src/mem/gdt/gdt.h +++ b/src/mem/gdt/gdt.h @@ -26,6 +26,6 @@ struct GDTR { uint64_t address; } __attribute__((packed)); -void gdt_init(); +void gdt_init(void); #endif \ No newline at end of file diff --git a/src/mem/heap/kheap.h b/src/mem/heap/kheap.h index 52b9315..ee4672d 100644 --- a/src/mem/heap/kheap.h +++ b/src/mem/heap/kheap.h @@ -23,10 +23,10 @@ struct heap_block_t { struct heap_block_t* next; } __attribute__((aligned(16))); -void kheap_init(); +void kheap_init(void); void* kmalloc(size_t size); void kfree(void* ptr); -void* kalloc_stack(); -void kheap_map_page(); +void* kalloc_stack(void); +void kheap_map_page(void); #endif \ No newline at end of file diff --git a/src/mem/paging/pmm.h b/src/mem/paging/pmm.h index 90e2f54..7634af1 100644 --- a/src/mem/paging/pmm.h +++ b/src/mem/paging/pmm.h @@ -12,6 +12,6 @@ void pmm_init(struct boot_context boot_ctx); void pmm_free(uintptr_t addr); -uintptr_t pmm_alloc(); +uintptr_t pmm_alloc(void); #endif \ No newline at end of file diff --git a/src/mem/paging/vmm.h b/src/mem/paging/vmm.h index 368a1f9..3b60a84 100644 --- a/src/mem/paging/vmm.h +++ b/src/mem/paging/vmm.h @@ -29,6 +29,6 @@ struct vm_object { #define VM_FLAG_EXEC (1 << 1) #define VM_FLAG_USER (1 << 2) -void vmm_init(); +void vmm_init(void); #endif \ No newline at end of file diff --git a/src/sched/process.h b/src/sched/process.h index cb080b3..c6b6ecf 100644 --- a/src/sched/process.h +++ b/src/sched/process.h @@ -27,12 +27,12 @@ struct process_t { struct process_t* next; }; -void process_init(); +void process_init(void); struct process_t* process_create(char* name, void(*function)(void*), void* arg); void process_add(struct process_t** processes_list, struct process_t* process); void process_delete(struct process_t** processes_list, struct process_t* process); struct process_t* process_get_next(struct process_t* process); -void process_exit(); +void process_exit(void); void process_display_list(struct process_t* processes_list); diff --git a/src/sched/scheduler.h b/src/sched/scheduler.h index 9ec712e..071321e 100644 --- a/src/sched/scheduler.h +++ b/src/sched/scheduler.h @@ -8,6 +8,6 @@ #define SCHEDULER_H struct cpu_status_t* scheduler_schedule(struct cpu_status_t* context); -void scheduler_init(); +void scheduler_init(void); #endif \ No newline at end of file diff --git a/src/time/timer.h b/src/time/timer.h index 8b398fd..bd13056 100644 --- a/src/time/timer.h +++ b/src/time/timer.h @@ -7,7 +7,7 @@ #ifndef TIMER_H #define TIMER_H -void timer_init(); +void timer_init(void); void timer_wait(unsigned int wait_ticks); #endif \ No newline at end of file