implemented user mode

This commit is contained in:
2025-07-29 11:31:47 +03:00
parent 2a6266566a
commit bc9fa4eac7
4 changed files with 51 additions and 7 deletions

View File

@@ -10,6 +10,8 @@
#define PAGE_W (1 << 2) // Writable
#define PAGE_X (1 << 3) // Executable
#define PAGE_U (1 << 4) // User (accessible in user mode)
#define USER_BASE 0x1000000
#define SSTATUS_SPIE (1 << 5)
struct process {
int pid; // ID of a process