smp: let other processors run threads

This commit is contained in:
Matheus
2023-11-30 17:54:32 -03:00
parent 1b7e671a6d
commit 57c94ebf15
7 changed files with 82 additions and 25 deletions
+8
View File
@@ -0,0 +1,8 @@
#ifndef _PGCACHE_H
#define _PGCACHE_H
void pgcache_init();
int pgcache_getpage(vnode_t *node, uintmax_t offset, void **ret);
int pgcache_setdirty(void *addr);
#endif
+2
View File
@@ -11,6 +11,7 @@
#define SCHED_THREAD_FLAGS_RUNNING 2
#define SCHED_THREAD_FLAGS_SLEEP 4
#define SCHED_THREAD_FLAGS_INTERRUPTIBLE 8
#define SCHED_THREAD_FLAGS_PREEMPTED 16
#define SCHED_PROC_STATE_NORMAL 0
#define SCHED_PROC_STATE_ZOMBIE 1
@@ -91,5 +92,6 @@ void sched_destroyproc(proc_t *);
void sched_destroythread(thread_t *);
void sched_targetcpu(struct cpu_t *cpu);
void sched_sleepus(size_t us);
void sched_apentry();
#endif