forked from xamidev/pepperOS
void parameter on functions of arity 0
This commit is contained in:
@@ -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 ***");
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
void idt_init();
|
||||
void idt_init(void);
|
||||
|
||||
struct interrupt_descriptor {
|
||||
uint16_t address_low;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -9,6 +9,6 @@
|
||||
|
||||
void kputs(const char* str);
|
||||
void _putchar(char character);
|
||||
void term_init();
|
||||
void term_init(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -26,6 +26,6 @@ struct GDTR {
|
||||
uint64_t address;
|
||||
} __attribute__((packed));
|
||||
|
||||
void gdt_init();
|
||||
void gdt_init(void);
|
||||
|
||||
#endif
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user