Commit 2f513e5
committed
fix(axmm): revert page table locks back to spin::Mutex and remove kernel_guard dependency
- Revert PageTableLockManager in `aspace.rs` to use `spin::Mutex` instead of `kspin::SpinNoIrq`.
- Remove `IrqSave` usage in `handle_page_fault` and `handle_page_fault_write` as system calls now run with interrupts disabled.
- Remove `kernel_guard` dependency from `arceos/modules/axmm/Cargo.toml`.
中译:
fix(axmm): 将页表锁还原为 spin::Mutex 并移除了 kernel_guard 依赖
- 将 `aspace.rs` 中的 `PageTableLockManager` 还原为使用 `spin::Mutex` 替换 `kspin::SpinNoIrq`。
- 因为系统调用目前已经关中断执行,移除了 `handle_page_fault` 和 `handle_page_fault_write` 中对 `IrqSave` 的使用。
- 移除了 `arceos/modules/axmm/Cargo.toml` 中引入的 `kernel_guard` 依赖。1 parent 2993624 commit 2f513e5
3 files changed
Lines changed: 3 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
28 | | - | |
| 27 | + | |
29 | 28 | | |
30 | 29 | | |
31 | | - | |
| 30 | + | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
54 | | - | |
| 53 | + | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
| |||
616 | 615 | | |
617 | 616 | | |
618 | 617 | | |
619 | | - | |
620 | 618 | | |
621 | 619 | | |
622 | 620 | | |
| |||
709 | 707 | | |
710 | 708 | | |
711 | 709 | | |
712 | | - | |
713 | 710 | | |
714 | 711 | | |
715 | 712 | | |
| |||
0 commit comments