core: change types from uint32_t to u32 (e.g)
This commit is contained in:
@ -7,18 +7,18 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
uint32_t esp_backup;
|
||||
u32 esp_backup;
|
||||
|
||||
static struct task *create_task(uint8_t owner_id)
|
||||
static struct task *create_task(u8 owner_id)
|
||||
{
|
||||
static uint32_t pid = 1;
|
||||
static u32 pid = 1;
|
||||
struct task *new_task = vmalloc(sizeof(struct task));
|
||||
if (!new_task)
|
||||
return NULL;
|
||||
new_task->next = current_task->next;
|
||||
new_task->prev = current_task;
|
||||
current_task->next = new_task;
|
||||
new_task->owner_id = owner_id;
|
||||
new_task->uid = owner_id;
|
||||
new_task->esp0 = alloc_pages(STACK_SIZE, NULL);
|
||||
if (!new_task->esp0) {
|
||||
vfree(new_task);
|
||||
@ -35,13 +35,13 @@ static struct task *create_task(uint8_t owner_id)
|
||||
return new_task;
|
||||
}
|
||||
|
||||
int create_kernel_task(void)
|
||||
i8 create_kernel_task(void)
|
||||
{
|
||||
struct task *new_task = vmalloc(sizeof(struct task));
|
||||
if (!new_task)
|
||||
return -1;
|
||||
new_task->status = RUN;
|
||||
new_task->owner_id = 0;
|
||||
new_task->uid = 0;
|
||||
new_task->pid = 0;
|
||||
new_task->heap = page_directory;
|
||||
new_task->cr3 = page_directory - KERNEL_START;
|
||||
@ -57,7 +57,7 @@ void exec_fn(void (*fn)(void))
|
||||
if (!new_task)
|
||||
kpanic("failed to create new task");
|
||||
new_task->status = RUN;
|
||||
new_task->eip = (uint32_t *)fn;
|
||||
new_task->eip = (u32 *)fn;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user