WIP on kernel syscalls

This commit is contained in:
2021-05-01 17:09:50 -05:00
parent 7caf49065d
commit c962a83ff0
14 changed files with 142 additions and 31 deletions

View File

@@ -14,7 +14,7 @@ void *initialize_context(void *task_entry, struct page_stack_t *page_stack)
"mov (%%esp), %0; "
"popf; "
: "=r"(flags));
struct process_state_t *state = (struct process_state_t*)PCB_LOCATION;
struct process_context_t *state = (struct process_context_t*)PCB_LOCATION;
memset(NULL, 0, page_size);
state->cs = 0x1B;
state->eip = (uint32_t)task_entry;