mirror of
https://github.com/JannisHeydemann/BoredOS.git
synced 2026-05-30 02:16:58 +00:00
CHECKP: multi core scheduling
This commit is contained in:
@@ -52,6 +52,7 @@ 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)
|
||||
} __attribute__((aligned(16))) process_t;
|
||||
|
||||
typedef struct {
|
||||
@@ -70,6 +71,9 @@ 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)
|
||||
uint64_t sched_ipi_handler(registers_t *regs);
|
||||
|
||||
void process_push_gui_event(process_t *proc, gui_event_t *ev);
|
||||
process_t* process_get_by_ui_window(void* win);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user