Zhang Junyang
8148072984
Upgrade the `riscv` crate to fix the ssoft handling
...
3c61863630
2025-11-14 10:14:03 +08:00
Zhang Junyang
7e7f6741c6
Setup RISC-V AP timer
2025-11-14 10:14:03 +08:00
Zhang Junyang
7d21144da6
Add RISC-V IPI
2025-11-14 10:14:03 +08:00
Zhang Junyang
73c0f34947
Remove `Arc` guards of locks that have no users
2025-11-13 23:32:36 +08:00
Zhang Junyang
b69feb97c9
Rename some `init` to `init_on_cpu`
2025-11-12 17:57:36 +08:00
Zhang Junyang
14aee3d5cc
Unify and fix RISC-V symbol names
2025-11-12 17:39:04 +08:00
Ruihan Li
121da78aa2
Revise names and comments in `ostd::arch`
2025-11-12 14:43:14 +08:00
Ruihan Li
d447fe0ca8
Update APICs' MMIO region sizes
2025-11-05 22:48:40 +08:00
Zhang Junyang
3b4569e14d
Add RISC-V SMP boot entrypoint
2025-11-02 21:23:32 +08:00
Zejun Zhao
431b6fdff7
Make riscv64's `PageTableEntry::set_prop` recognize A/D bit
2025-10-31 08:52:34 +08:00
Ruihan Li
9c70ac0f0a
Mark `sync_dma_range` as `unsafe`
2025-10-30 17:04:45 +08:00
Ruihan Li
d487e42b7c
Reunify the style of defining `arch` modules
2025-10-30 17:04:45 +08:00
Zejun Zhao
6af524b451
Support RISC-V Sv39 Paging mode
2025-10-30 14:51:37 +08:00
Zejun Zhao
577d8294d0
Use exception table to recover in RISC-V page fault handler
2025-10-30 11:27:08 +08:00
Zejun Zhao
79992c66de
Implement fallible memory operations on RISC-V platform
2025-10-30 11:27:08 +08:00
Zejun Zhao
629b053ea8
Make exception table arch-agnostic
2025-10-30 11:27:08 +08:00
Zejun Zhao
bfcb1d2c00
Implement `DmaStream::sync` on RISC-V platforms
2025-10-30 10:47:53 +08:00
Zejun Zhao
39a541fdeb
Add RISC-V FPU support
2025-10-29 13:24:30 +08:00
Zejun Zhao
32581caa7a
Skip management hart when detecting available extensions
2025-10-28 09:32:12 +08:00
Ruihan Li
4996146a24
Add `.type` and `.size` directives
2025-10-28 09:21:44 +08:00
Ruihan Li
e61c8ce56a
Unify styles of assembly code
2025-10-28 09:21:44 +08:00
Ruihan Li
a6b01501ac
Load local addresses and define constants
2025-10-28 09:21:44 +08:00
Ruihan Li
0b597d84a0
Use `IoMem<Sensitive>` in local APIC
2025-10-28 09:12:02 +08:00
Ruihan Li
d42208b591
Use `IoMem<Sensitive>` in I/O APIC
2025-10-28 09:12:02 +08:00
Zejun Zhao
dd8de9f381
Handle kernel page fault on RISC-V platforms
2025-10-27 11:25:59 +08:00
Zejun Zhao
1e183825d3
Refactor RISC-V exception-related code
2025-10-27 11:25:59 +08:00
Arthur Paulino
6a67807fd0
Implement `IdSet::iter_in`
...
This patch enables more expressive ways to slice and iterate over
the `Id`s in an `IdSet` with `IdSet::iter_in`, which takes an arbitrary
`IdSetSlicer`.
`IdSet::iter_in` efficiently slices out unintended inner parts and
then, within the remaining parts, skips inactive bits by using
`BitSlice::iter_ones` from the `bitvec` crate.
It also delivers several implementations of `IdSetSlicer` so OSTD
consumers can represent `Id` ranges ergonomically.
In the Asterinas kernel, `CpuSet::iter_in` enables a cleaner way to
define an interator that cycles over the CPUs.
2025-10-25 11:23:13 +08:00
Zejun Zhao
8251d48bf2
Add RISC-V PLIC support
2025-10-24 16:28:41 +08:00
Zejun Zhao
752f040368
Implement security-sensitive IoMem
2025-10-24 16:28:41 +08:00
Zejun Zhao
68721b2365
Activate kernel page table earlier on BSP
2025-10-24 16:28:41 +08:00
Zejun Zhao
72dbaa4b38
Use absolute time when setting up timer interrupt using SBI
2025-10-24 11:32:28 +08:00
Tate, Hongliang Tian
c44e45ea78
Add the `IdSet<I>` utility type
2025-10-22 14:29:52 +08:00
Tate, Hongliang Tian
d9a74c6cfc
Remove unit tests that instantiate invalid CpuId
2025-10-22 14:29:52 +08:00
Tate, Hongliang Tian
6942bc6643
Extract CpuId into a sub-module of the `cpu` module
...
This prevents creating invalid instances of `CpuId` within the `cpu`
module by using `CpuId(raw_id)` directly. Another benefit is to
make the `cpu` module more modular, which is good for readability
and maintainability.
2025-10-22 14:29:52 +08:00
Yuke Peng
23f14df21f
[sched] Fix the missing of preemption check in RISC-V & loongarch
2025-10-20 11:17:24 +08:00
Ruihan Li
384e5bc70d
Fix an off-by-one bug in the trap frame
2025-10-16 22:28:29 +09:00
Ruihan Li
fe7dc1f83e
Adjust some symbol names
2025-10-16 22:28:29 +09:00
Ruihan Li
3673049620
Resolve minor issues in `ostd::src::arch`
2025-10-16 21:46:40 +09:00
Ruihan Li
bc6ef5231b
Reorangize `ostd::arch::irq`
2025-10-16 21:46:40 +09:00
Wang Siyuan
c2adcf9944
Support accessing user spaces of other processes
2025-10-15 16:34:32 +08:00
Ruihan Li
51eb74250e
Fix several MMIO/PIO allocation bugs
2025-10-14 00:22:38 +09:00
Ruihan Li
7d86d326a3
Adjust the MMIO area alignment
2025-10-14 00:22:38 +09:00
Ruihan Li
fa59b8be2b
Adjust visibility marks in `ostd::io`
2025-10-14 00:22:38 +09:00
Ruize Tang
50eaffc731
Remove `RwLock.downgrade` due to potential contention with `RwLock.read`
2025-09-30 17:34:22 +08:00
zjp
e7ef7d5947
ostd: remove dead buddy_system_allocator dependency
...
cc https://github.com/asterinas/asterinas/issues/2480#issuecomment-3349718870
2025-09-30 11:44:24 +08:00
Ruihan Li
36a38c3f04
Bump `rand` version to 0.9.2
2025-09-30 11:36:37 +08:00
Yang Zhichao
b76f11f7b3
Add an `irq_num` parameter to `bottom_half_handler` for IRQ counting statistics.
2025-09-27 21:02:23 +08:00
Tao Su
fc114019d6
Recompile bzImage if payload is changed
2025-09-26 15:35:14 +08:00
Ruihan Li
472edcf795
Clean up unnecessary features
2025-09-24 15:41:07 +08:00
Yuke Peng
48c7c37f50
Bump version to 0.16.1
2025-09-24 13:55:48 +08:00