git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introducing LunaBuild to the build flow (#36)
[lunaix-os.git]
/
lunaix-os
/
kernel
/
process
/
sched.c
diff --git
a/lunaix-os/kernel/process/sched.c
b/lunaix-os/kernel/process/sched.c
index bdd9736fd7e3e84db9737d2fe67c45a02ff45b53..91cf61becdc53c0d2a8411f1f7426990531f4eea 100644
(file)
--- a/
lunaix-os/kernel/process/sched.c
+++ b/
lunaix-os/kernel/process/sched.c
@@
-1,7
+1,6
@@
#include <sys/abi.h>
#include <sys/mm/mempart.h>
#include <sys/abi.h>
#include <sys/mm/mempart.h>
-#include <hal/intc.h>
#include <sys/cpu.h>
#include <lunaix/fs/taskfs.h>
#include <sys/cpu.h>
#include <lunaix/fs/taskfs.h>
@@
-18,9
+17,11
@@
#include <lunaix/status.h>
#include <lunaix/syscall.h>
#include <lunaix/syslog.h>
#include <lunaix/status.h>
#include <lunaix/syscall.h>
#include <lunaix/syslog.h>
-#include <lunaix/
pcontext
.h>
+#include <lunaix/
hart_state
.h>
#include <lunaix/kpreempt.h>
#include <lunaix/kpreempt.h>
+#include <lunaix/generic/isrm.h>
+
#include <klibc/string.h>
struct thread empty_thread_obj;
#include <klibc/string.h>
struct thread empty_thread_obj;
@@
-207,7
+208,7
@@
schedule()
sched_ctx.procs_index = to_check->process->pid;
done:
sched_ctx.procs_index = to_check->process->pid;
done:
- i
ntc
_notify_eos(0);
+ i
srm
_notify_eos(0);
run(to_check);
fail("unexpected return from scheduler");
run(to_check);
fail("unexpected return from scheduler");
@@
-389,7
+390,7
@@
alloc_process()
proc->created = clock_systime();
proc->pgid = proc->pid;
proc->created = clock_systime();
proc->pgid = proc->pid;
- proc->sigreg = vzalloc(sizeof(struct sigregist
er
));
+ proc->sigreg = vzalloc(sizeof(struct sigregist
ry
));
proc->fdtable = vzalloc(sizeof(struct v_fdtable));
proc->mm = procvm_create(proc);
proc->fdtable = vzalloc(sizeof(struct v_fdtable));
proc->mm = procvm_create(proc);
@@
-509,7
+510,7
@@
delete_process(struct proc_info* proc)
vfree(proc->fdtable);
vfree(proc->fdtable);
- signal_free_regist
ers
(proc->sigreg);
+ signal_free_regist
ry
(proc->sigreg);
procvm_mount(mm);
procvm_mount(mm);