WangRunji
128257c395
impl argc & argv for user process
2018-11-07 23:28:07 +08:00
WangRunji
e27aea47e1
impl file syscalls, without test
2018-11-07 13:35:59 +08:00
WangRunji
200a574a1f
fix physical memory range on RV32
2018-11-07 13:16:52 +08:00
lcy1996
4a92a4c6a1
Update the report for expr3
2018-11-07 10:15:25 +08:00
WangRunji
91bd411a8f
fit for multi-thread sfs
...
- use global root inode
- remove global IDE on x86
2018-11-07 02:00:40 +08:00
WangRunji
16fb733497
Blocking getchar
2018-11-05 22:55:59 +08:00
lcy1996
a145909998
Fix compile error after merge for the new processor.
2018-11-05 22:16:45 +08:00
lcy1996
fcdee71f9d
Merge confilt
2018-11-05 21:31:04 +08:00
lcy1996
c8ea2cb0cf
Fix bug and enable swap in/out and frame delayed allocating.
2018-11-05 20:37:05 +08:00
chenqiuhao
87506b000d
debug for process
2018-11-05 19:31:45 +08:00
chenqiuhao
2002ddd5fa
move processor from wrj
2018-11-03 21:45:03 +08:00
lcy1996
b1425a53f9
finish frame delayed allocating
2018-11-03 14:33:36 +08:00
WangRunji
0a6b4fb8f2
Modify const. Update cargo.
2018-11-02 16:14:29 +08:00
WangRunji
ba4a24ba3b
Fix RV32 multi-core: Setup page table for other cores.
2018-11-02 16:13:58 +08:00
WangRunji
e5a196c00f
Fix processor. Disable interrupt on switching.
2018-11-02 10:25:41 +08:00
WangRunji
5852881611
unwrap -> expect
2018-11-01 23:45:48 +08:00
WangRunji
b7d6b2989d
Fix bugs. Pass test 'spin'
...
- Fix ACK IRQ on x86.
- Add process exit handler.
2018-11-01 21:10:19 +08:00
WangRunji
ed20aa45fd
Fix user process bug on RV32.
...
Set sstatus.SIE = 0 on the initial TrapFrame, to prevent interrupt on switching.
2018-11-01 19:53:30 +08:00
WangRunji
6fc23e1134
Ugly impl sys_wait(0)
2018-11-01 00:45:02 +08:00
WangRunji
74facd8e87
Use Vec to replace array in ProcessManager.
2018-11-01 00:16:32 +08:00
WangRunji
182c595a20
Enable multi-core on RV32.
2018-10-31 11:46:50 +08:00
WangRunji
250f1385d3
Better debug print for TrapFrame on RV32
2018-10-31 11:39:42 +08:00
lcy1996
4f03eff015
Use SpinNoIrqLock to replace the spin::mutex
2018-10-31 11:11:06 +08:00
lcy1996
66b18772c6
Modified the expr3/report
2018-10-31 01:19:24 +08:00
lcy1996
89fb06d8dd
Modified the expr3/report
2018-10-31 01:17:26 +08:00
lcy1996
bdd60dd731
Modified the expr3/report
2018-10-31 01:14:51 +08:00
Ben Pig Chu
d698440feb
fe report clarify
2018-10-30 23:15:53 +08:00
Ben Pig Chu
93ad064ae9
Merge branch 'OsTrain2018-g4' of https://github.com/oscourse-tsinghua/RustOS into OsTrain2018-g4
2018-10-30 23:12:22 +08:00
Ben Pig Chu
227c514092
fs report
2018-10-30 23:10:26 +08:00
chenqiuhao1997
f69db428c5
Update report.md
2018-10-30 23:02:33 +08:00
lcy1996
504401355f
Add expr3 report(not finiished.
2018-10-30 21:50:38 +08:00
WangRunji
7229b49eb8
Use rust-lld for RV32. Remove riscv git submodule.
2018-10-30 13:30:20 +08:00
lcy1996
2c3de7b222
Merge branch 'OsTrain2018-g4' of github.com:oscourse-tsinghua/RustOS into lcy_issue1
2018-10-30 12:46:01 +08:00
lcy1996
edde416052
Finish swap for multi-user process
2018-10-30 12:45:09 +08:00
WangRunji
72dc3f62ad
Remove kernel stack from MemorySet.
2018-10-27 15:17:15 +08:00
WangRunji
438e290b6d
Fix PageTable::get_entry -> Option.
2018-10-26 23:43:12 +08:00
WangRunji
a42d6086c6
Simplify IDE code.
2018-10-26 18:18:11 +08:00
WangRunji
81196729e4
Fix RV32 atomic.
...
- Fix __atomic_compare_exchange_4().
- Add patch for core::sync::atomic.
- Revert kernel Mutex.
2018-10-26 15:22:03 +08:00
chenqiuhao
ede69959e4
debug for compare exchange
2018-10-26 15:03:20 +08:00
WangRunji
925a08f9ae
Add OSLab/exp3 report
2018-10-26 02:32:48 +08:00
WangRunji
95ab9caba1
Add impl of atomic_fetch_*
2018-10-26 02:31:05 +08:00
WangRunji
0680023e35
Recover wait/sleep
2018-10-26 00:49:19 +08:00
WangRunji
c734f79699
Drop context when process exit. Remove util mod.
2018-10-25 01:04:31 +08:00
WangRunji
85a1dca684
Use weak linkage to provide dependencies for process::thread.
2018-10-24 21:32:23 +08:00
WangRunji
80b161db98
Recover set_priority and fork
2018-10-24 21:29:41 +08:00
WangRunji
5db908b1c5
Separate ProcessManager to a mod.
2018-10-24 00:38:22 +08:00
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.
2018-10-24 00:28:29 +08:00
WangRunji
6741ba399b
Add arch::cpu::halt(). Halt when panic.
2018-10-24 00:23:40 +08:00
lcy1996
ec27ed8d2e
add comment
2018-10-23 00:19:37 +08:00
lcy1996
5f34cc54d8
Merge branch 'OsTrain2018-g4' of github.com:oscourse-tsinghua/RustOS into lcy_issue1
2018-10-23 00:00:27 +08:00