File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,11 @@ void gammaos_first_ever_task(){
111
111
112
112
/**==========================================================================*/
113
113
114
+ void task_kill (struct task * _task ){
115
+ destroy_virtual_address_space (_task -> task_space );
116
+ task_list_delete (_task );
117
+ kfree (_task );
118
+ }
114
119
void current_task_save_state (struct interrupt_frame * iframe ){
115
120
116
121
if (!cur_task ){
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ struct task* new_task(struct process* _process);
50
50
struct task * next_task ();
51
51
int8_t close_task (struct task * _task );
52
52
53
+ void task_kill (struct task * _task );
53
54
void task_switch (struct task * _task );
54
55
void enter_task (struct reg * registers );
55
56
void restore_gprs (struct reg * registers );
You can’t perform that action at this time.
0 commit comments