mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-28 05:08:22 +00:00
smp: let other processors run threads
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user