Running in user mode

This commit is contained in:
2018-02-22 12:16:20 +01:00
parent 6c078289f9
commit 68ec6fa575
9 changed files with 52 additions and 29 deletions

View File

@@ -3,6 +3,8 @@
void cpu_init();
extern uint8_t tss[];
void set_tss_rsp0(void *tss, void *rsp0);
void load_idt(void *);

View File

@@ -18,6 +18,7 @@
#define PAGE_PRESENT 0x001
#define PAGE_WRITE 0x002
#define PAGE_USER 0x004
#define PAGE_HUGE 0x080
#define PAGE_GLOBAL 0x100

View File

@@ -2,6 +2,7 @@
#include <queue.h>
#include <scheduler.h>
#include <stdint.h>
#include <interrupts.h>
struct process
{