mirror of
https://github.com/JannisHeydemann/BoredOS.git
synced 2026-05-30 02:16:58 +00:00
FEAT: VFS overhaul
This commit is contained in:
@@ -52,7 +52,9 @@ typedef struct process {
|
||||
uint64_t ticks;
|
||||
uint64_t sleep_until;
|
||||
size_t used_memory;
|
||||
uint32_t cpu_affinity; // Which CPU this process runs on (0 = BSP)
|
||||
uint32_t cpu_affinity;
|
||||
bool is_idle;
|
||||
char cwd[1024];
|
||||
} __attribute__((aligned(16))) process_t;
|
||||
|
||||
typedef struct {
|
||||
@@ -60,6 +62,7 @@ typedef struct {
|
||||
char name[64];
|
||||
uint64_t ticks;
|
||||
size_t used_memory;
|
||||
bool is_idle;
|
||||
} ProcessInfo;
|
||||
|
||||
void process_init(void);
|
||||
@@ -73,7 +76,7 @@ uint64_t process_terminate_current(void);
|
||||
void process_terminate(process_t *proc);
|
||||
process_t* process_get_by_pid(uint32_t pid);
|
||||
|
||||
// SMP: IPI handler for AP scheduling (called from ISR)
|
||||
// SMP: IPI handler for AP scheduling
|
||||
uint64_t sched_ipi_handler(registers_t *regs);
|
||||
|
||||
void process_push_gui_event(process_t *proc, gui_event_t *ev);
|
||||
|
||||
Reference in New Issue
Block a user