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
74facd8e87
Use Vec to replace array in ProcessManager.
2018-11-01 00:16:32 +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
fc2fd18c36
Add docs for thread::spawn()
2018-09-22 17:32:16 +08:00
WangRunji
7dd9494389
Add Scheduler.move_to_head(pid)
to replace Processor.next
...
Rename `set_reschedule` to `yield_now`
2018-09-22 15:54:22 +08:00
dzy
906019f7c6
Add little notes for BitAllocator
2018-09-07 20:53:37 +08:00
WangRunji
b88648ff44
Fit for newest Rust nightly. x86_64 ok, riscv32 broken.
2018-08-04 16:20:25 +08:00
WangRunji
a2111a928f
Move thread mod to ucore-process crate
2018-07-17 19:06:30 +08:00
WangRunji
776dc976c9
Fix for user
2018-07-17 12:07:21 +08:00
WangRunji
06b39ed521
Impl remove any for StrideScheduler
2018-07-17 11:01:51 +08:00
WangRunji
04b62ec79f
Use Vec instead of array in Scheduler
2018-07-17 02:13:42 +08:00
WangRunji
c8a9eaf3e6
Split process mod to extern crate
2018-07-17 01:56:28 +08:00