Skip to content

Commit

Permalink
改改task.c的格式
Browse files Browse the repository at this point in the history
说出来你可能不信,是手机先动的手!
  • Loading branch information
satgo1546 committed Sep 7, 2016
1 parent 0063530 commit ccaee18
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions kernel/arch/i686/Basic/task.c
Expand Up @@ -39,12 +39,9 @@ task_node* current;
task_node tska, tskb;

void create_process() {
// Allocation is kind of crappy now..
// Allocation is kind of crappy now.
uint32_t phy_p = Memory_SearchFree();
if (!Memory_AllocPhy(phy_p)) panic_text("Can not assign memory to create process!");



}

void insert_node(void* stack_top, task_node* dst) {
Expand All @@ -53,7 +50,7 @@ void insert_node(void* stack_top, task_node* dst) {
current->next = dst;

dst->meta = false;
dst->ptr = (task_t*)stack_top;
dst->ptr = (task_t*) stack_top;
}

void create_task(task_t* model, void* stack_top, void* eip) {
Expand Down

0 comments on commit ccaee18

Please sign in to comment.