syscalls: start adding exit syscall, not done yet

This commit is contained in:
2025-06-21 18:54:52 +03:00
parent bb096f826a
commit 70d6aacb91
6 changed files with 102 additions and 3 deletions
+1
View File
@@ -39,6 +39,7 @@ uint32_t* get_page_dir();
void set_page_dir(uint32_t new_page_dir);
uint32_t phys_to_virt(uint32_t phys);
uint32_t* create_page_dir();
void destroy_page_dir(uint32_t* page_dir);
//page_alloc.c
void set_bit(uint32_t page_index);
+1 -1
View File
@@ -14,7 +14,7 @@ int printf(const char* __restrict, ...);
int putchar(int);
int puts(const char*);
//#define KATAU_DEBUG
#define KATAU_DEBUG
#ifdef KATAU_DEBUG
#define debug_log printf
+3 -1
View File
@@ -68,10 +68,12 @@ typedef struct Process
extern Process* current;
Process* task_create(uint32_t func, uint32_t user_esp, uint32_t ring, uint32_t* pagedir);
void task_kill(Process* proc);
void task_exit();
void scheduler_init();
void schedule();
void scheduler_lock();
void scheduler_unlock();
void handle_syscall(TrapFrame *tf);
#endif