rcore-thread
rcore-thread copied to clipboard
Bare-metal multithreading on multi-core processor.
There are two possible deadlock bugs in threadpool.rs 1. Double-Lock: - In `fn tick`: https://github.com/rcore-os/rcore-thread/blob/e00f5ed11479e5436470497ec9ce49510fee94e1/src/thread_pool.rs#L93-L97 https://github.com/rcore-os/rcore-thread/blob/e00f5ed11479e5436470497ec9ce49510fee94e1/src/thread_pool.rs#L159 The first lock `self.timer.lock()` is on L93 `fn set_status` is on L97 The second...
使用后报错
 报错消息ru如上图 ```rust static mut HEAP: [u8; HEAP_SIZE] = [0; HEAP_SIZE]; #[no_mangle] pub extern "C" fn _start() -> !{ use x86_64::structures::paging::mapper::MapperAllSizes; use x86_64::structures::paging::Page; use x86_64::VirtAddr; use memory::BootInfoFrameAllocator; println!("Hello World {}",...
- [ ] Move default context switch code on each arch from kernel to this crate - [ ] Write examples on RISCV and AArch64 - [ ] Write README