WangRunji
e5a196c00f
Fix processor. Disable interrupt on switching.
6 years ago
WangRunji
5852881611
unwrap -> expect
6 years ago
WangRunji
b7d6b2989d
Fix bugs. Pass test 'spin'
...
- Fix ACK IRQ on x86.
- Add process exit handler.
6 years ago
WangRunji
74facd8e87
Use Vec to replace array in ProcessManager.
6 years ago
WangRunji
0680023e35
Recover wait/sleep
6 years ago
WangRunji
c734f79699
Drop context when process exit. Remove util mod.
6 years ago
WangRunji
85a1dca684
Use weak linkage to provide dependencies for process::thread.
6 years ago
WangRunji
80b161db98
Recover set_priority and fork
6 years ago
WangRunji
5db908b1c5
Separate ProcessManager to a mod.
6 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.
6 years ago
WangRunji
fc2fd18c36
Add docs for thread::spawn()
6 years ago
WangRunji
7dd9494389
Add `Scheduler.move_to_head(pid)` to replace `Processor.next`
...
Rename `set_reschedule` to `yield_now`
6 years ago
dzy
906019f7c6
Add little notes for BitAllocator
6 years ago
WangRunji
b88648ff44
Fit for newest Rust nightly. x86_64 ok, riscv32 broken.
6 years ago
WangRunji
a2111a928f
Move thread mod to ucore-process crate
6 years ago
WangRunji
776dc976c9
Fix for user
6 years ago
WangRunji
06b39ed521
Impl remove any for StrideScheduler
6 years ago
WangRunji
04b62ec79f
Use Vec instead of array in Scheduler
6 years ago
WangRunji
c8a9eaf3e6
Split process mod to extern crate
6 years ago