File tree Expand file tree Collapse file tree 3 files changed +2
-12
lines changed
Expand file tree Collapse file tree 3 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,7 @@ use axhal::{
1515use axio:: prelude:: * ;
1616use axtask:: current;
1717use memory_addr:: { MemoryAddr , PAGE_SIZE_4K , VirtAddr } ;
18- use starry_core:: {
19- mm:: access_user_memory,
20- task:: AsThread ,
21- } ;
18+ use starry_core:: { mm:: access_user_memory, task:: AsThread } ;
2219use starry_vm:: { vm_load_until_nul, vm_read_slice, vm_write_slice} ;
2320
2421fn check_region ( start : VirtAddr , layout : Layout , access_flags : MappingFlags ) -> AxResult < ( ) > {
Original file line number Diff line number Diff line change 11//! User address space management.
22
33use alloc:: { borrow:: ToOwned , string:: String , vec, vec:: Vec } ;
4- use core:: {
5- ffi:: CStr ,
6- hint:: unlikely,
7- iter,
8- mem:: MaybeUninit ,
9- } ;
4+ use core:: { ffi:: CStr , hint:: unlikely, iter, mem:: MaybeUninit } ;
105
116use axerrno:: { AxError , AxResult } ;
127use axfs:: { CachedFile , FS_CONTEXT , FileBackend } ;
Original file line number Diff line number Diff line change @@ -85,7 +85,6 @@ pub struct Thread {
8585
8686 /// Indicates whether the thread is currently accessing user memory.
8787 accessing_user_memory : AtomicBool ,
88-
8988}
9089
9190impl Thread {
@@ -155,7 +154,6 @@ impl Thread {
155154 self . accessing_user_memory
156155 . store ( accessing, Ordering :: Release ) ;
157156 }
158-
159157}
160158
161159#[ extern_trait]
You can’t perform that action at this time.
0 commit comments