rCore-Tutorial icon indicating copy to clipboard operation
rCore-Tutorial copied to clipboard

Tutorial for rCore OS step by step (3rd edition)

Results 24 rCore-Tutorial issues
Sort by recently updated
recently updated
newest added

https://codechina.csdn.net/qq_45677073/os_daily_learn

learning

https://blog.csdn.net/qq_28687433/article/details/113955315

learning

https://codechina.csdn.net/qq_45677073/os_daily_learn

learning

https://codechina.csdn.net/qq_45677073/os_daily_learn

learning

os/src/algorithm/src/allocator/segment_tree_allocator.rs SegmentTreeAllocator::new 在线段树分配器里的new方法里面,分配给tree的大小是 `let mut tree = vec![0u8; 2 * leaf_count];` 看之后的代码感觉是用每个bit位做节点,所以想问问这里是不是忘了除以8

bug

Fix issue https://github.com/rcore-os/rCore-Tutorial/issues/134

需要保存的寄存器应该是: 1. `x1` 2. 原来的 sp,即 `x2` 3. x3-x32 的通用寄存器 4. `sstatus` 5. `sepc` 上述应该是 32 + 2 == 34 个寄存器 在 https://rcore-os.github.io/rCore-Tutorial-deploy/docs/lab-4/guide/part-5.html 这里,目前版本似乎给了36,有什么特殊原因吗?

enhancement

``` /// Sv39 结构的页表项 #[derive(Copy, Clone, Default)] pub struct PageTableEntry(usize); ``` 这个结构是不是最好是 `repr(transparent)` 的?按 [Rust RFC](https://rust-lang.github.io/rfcs/1758-repr-transparent.html) 描述,感觉 `repr(transparent)` 能比较好控制 `PageTableEntry` 的 abi?

learning

不确定其他环境下是否也有这样的问题,目前在我的机器下,各分支下的 `sbi_shutdown` 导致问题应该都存在。 我的机器环境在[这里](https://github.com/rcore-os/rCore-Tutorial/issues/127#issue-786921222)有说明。