Ben Pig Chu
07b8a063ec
maually remove warning, pt2
7 years ago
Ben Pig Chu
1ca2bde069
maually remove warning, pt1
7 years ago
WangRunji
6952f008e0
rename ContextImpl to Process
7 years ago
equation314
e86229cb71
user: user rust programs are runnable
7 years ago
WangRunji
56fcad245a
update kernel to 2018 edition
7 years ago
WangRunji
df485d506e
simplify ProcessManager
...
- given that a proc can only be waited by its parent, wait_queue is no longer needed.
7 years ago
WangRunji
205f90a264
Merge branch 'dev' into g4-merge
...
# Conflicts:
# crate/memory/src/cow.rs
# crate/memory/src/memory_set.rs
# crate/memory/src/paging/mod.rs
# crate/memory/src/swap/mod.rs
# crate/process/src/lib.rs
# crate/process/src/process_manager.rs
# crate/process/src/processor.rs
# crate/process/src/thread.rs
# crate/riscv
# kernel/Cargo.lock
# kernel/src/arch/riscv32/compiler_rt.rs
# kernel/src/arch/riscv32/consts.rs
# kernel/src/arch/riscv32/context.rs
# kernel/src/arch/riscv32/interrupt.rs
# kernel/src/arch/riscv32/memory.rs
# kernel/src/arch/riscv32/mod.rs
# kernel/src/arch/riscv32/paging.rs
# kernel/src/arch/x86_64/driver/ide.rs
# kernel/src/arch/x86_64/interrupt/handler.rs
# kernel/src/arch/x86_64/mod.rs
# kernel/src/console.rs
# kernel/src/consts.rs
# kernel/src/fs.rs
# kernel/src/lib.rs
# kernel/src/memory.rs
# kernel/src/process/context.rs
# kernel/src/process/mod.rs
# kernel/src/syscall.rs
# kernel/src/trap.rs
7 years ago
WangRunji
44bf3fb07a
impl sys_exec
7 years ago
chenqiuhao
4d8d48cf4d
repair some bugs and move child control to processmanager
7 years ago
chenqiuhao
6652f8daf6
repair some bugs
7 years ago
chenqiuhao
8d6d3b7c37
debug for sleepkill
7 years ago
WangRunji
f97e8458b8
impl stdin & stdout as INode
7 years ago
lcy1996
9adcea44d5
Code transplanting: Fix bugs. Pass test 'spin'
7 years ago
WangRunji
a589ae90f3
use SysError in syscalls
7 years ago
WangRunji
beb6533059
impl sys_getdirentry. 'ls' ok.
7 years ago
WangRunji
124a5e0d5d
impl sys_dup
...
- Fix exit_code: i32
- Convert Box<File> to Arc<Mutex<File>> in Context
7 years ago
WangRunji
16be828370
impl sys_fstat
7 years ago
WangRunji
e27aea47e1
impl file syscalls, without test
7 years ago
lcy1996
a145909998
Fix compile error after merge for the new processor.
7 years ago
lcy1996
fcdee71f9d
Merge confilt
7 years ago
lcy1996
c8ea2cb0cf
Fix bug and enable swap in/out and frame delayed allocating.
7 years ago
chenqiuhao
2002ddd5fa
move processor from wrj
7 years ago
WangRunji
b7d6b2989d
Fix bugs. Pass test 'spin'
...
- Fix ACK IRQ on x86.
- Add process exit handler.
7 years ago
WangRunji
6fc23e1134
Ugly impl sys_wait(0)
7 years ago
WangRunji
0680023e35
Recover wait/sleep
7 years ago
WangRunji
80b161db98
Recover set_priority and fork
7 years ago
WangRunji
f7eb09e856
Multicore processing WORKS! Basically ...
...
- Rewrite processor.rs
Refactor to `Processor` & `ProcessManager`
- Use Box<dyn> instead of generic.
- Wait/sleep/wakeup is not supported yet.
I'm considering to implement them with WaitQueue.
7 years ago
WangRunji
776dc976c9
Fix for user
7 years ago
WangRunji
c8a9eaf3e6
Split process mod to extern crate
7 years ago
WangRunji
37a6df252f
Refactor process mod
7 years ago
WangRunji
69bc5caa81
Fix syscall return value, args. Pass `hello`.
7 years ago
WangRunji
3286fed36c
Recover syscall for RV32
7 years ago
WangRunji
4faa8a65ae
Move kernel to a new directory
7 years ago