Kmalloc is now used to allocate task structures

This commit is contained in:
pjht 2019-03-23 07:30:18 -05:00
parent 5bca438d98
commit 9caf48cb6d

View File

@ -7,8 +7,8 @@ push %eax; \
#include "tasking.h"
#include "../tasking.h"
#include "isr.h"
#include "../../libc/stdlib.h"
#include "../../libc/stdio.h"
#include <stdio.h>
#include "kmalloc.h"
#include "memory.h"
#include "gdt.h"
#include <stdint.h>
@ -28,7 +28,7 @@ void tasking_init() {
}
static Task* createTaskKmode(void* eip,char kmode) {
Task* task=malloc(sizeof(Task));
Task* task=kmalloc(sizeof(Task));
task->kmode=kmode;
task->regs.eax=0;
task->regs.ebx=0;