tasking: implement task_kill function, thanks deepseek
This commit is contained in:
@@ -41,6 +41,10 @@ uint32_t phys_to_virt(uint32_t phys);
|
||||
uint32_t* create_page_dir();
|
||||
void destroy_page_dir(uint32_t* page_dir);
|
||||
|
||||
static inline uint32_t virt_to_phys(void* virt) {
|
||||
return (uint32_t)virt - 0xC0000000;
|
||||
}
|
||||
|
||||
//page_alloc.c
|
||||
void set_bit(uint32_t page_index);
|
||||
void clear_bit(uint32_t page_index);
|
||||
|
||||
+3
-2
@@ -63,13 +63,14 @@ typedef struct Process
|
||||
struct Process* next; // Следующий процесс
|
||||
|
||||
file_t* file_descriptors[MAX_OPEN_FILES];
|
||||
uint8_t zombie;
|
||||
} 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 task_kill(Process* proc);
|
||||
|
||||
void scheduler_init();
|
||||
void schedule();
|
||||
|
||||
Reference in New Issue
Block a user