Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: user address space functionality #246

Merged
merged 22 commits into from
Jan 20, 2025
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
7ce84c3
feat: implement `USER` permission
JonasKruckenberg Jan 17, 2025
740a25e
rename `MmapSlice` to `UserMmap`
JonasKruckenberg Jan 17, 2025
ec71fd8
typo
JonasKruckenberg Jan 17, 2025
ada9d7b
remove `UnwindSafe` bound on `catch_traps`
JonasKruckenberg Jan 18, 2025
43ed56c
remove `copy_from_user` & `copy_to_user` in favor of the more univers…
JonasKruckenberg Jan 18, 2025
1940e74
fix: clear sum when entering trap handler
JonasKruckenberg Jan 18, 2025
2c54feb
fixes
JonasKruckenberg Jan 18, 2025
2e8f064
fix riscv register field setting and clearing
JonasKruckenberg Jan 18, 2025
281f389
Update mod.rs
JonasKruckenberg Jan 18, 2025
965f005
fix: `with_user_memory_access` passthrough return value
JonasKruckenberg Jan 18, 2025
e4fbc92
refactor: use `VirtualAddress` in error type
JonasKruckenberg Jan 18, 2025
62842e4
fix: kernel counter creation
JonasKruckenberg Jan 18, 2025
c251643
more helpful assert messages
JonasKruckenberg Jan 18, 2025
b679b0d
feat: implement `core::iter::Step` for address types
JonasKruckenberg Jan 18, 2025
175749e
fix: respect `VMContext` field alignments
JonasKruckenberg Jan 18, 2025
673eeb8
feat: exit `array_to_wasm_trampoline` with trap instead of return
JonasKruckenberg Jan 18, 2025
28d4cdb
refactor: move allocator and addressspace into store
JonasKruckenberg Jan 18, 2025
e58874c
fix `UserMmap`
JonasKruckenberg Jan 18, 2025
b1ede09
run wasm tests
JonasKruckenberg Jan 18, 2025
cff2de3
correct jumpt to userspace
JonasKruckenberg Jan 18, 2025
04ae00b
fmt & clippy
JonasKruckenberg Jan 18, 2025
e1dc9fa
Update main.rs
JonasKruckenberg Jan 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update mod.rs
  • Loading branch information
JonasKruckenberg committed Jan 18, 2025
commit 281f389e6dc50e4e52a04782206df53ba0e800a4
2 changes: 1 addition & 1 deletion kernel/src/vm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use crate::arch;
use crate::machine_info::MachineInfo;
use crate::vm::flush::Flush;
use crate::vm::frame_alloc::Frame;
pub use address::{PhysicalAddress, VirtualAddress};
pub use address::{AddressRangeExt, PhysicalAddress, VirtualAddress};
pub use address_space::AddressSpace;
use alloc::format;
use alloc::string::ToString;
Expand Down
Loading