@@ -26,14 +26,14 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWA
26
26
use crate :: process:: { HandleError , Process , scheduler:: Scheduler } ;
27
27
use alloc:: { format, string:: String } ;
28
28
use arch:: io:: IOPort ;
29
- use lignan:: { LogKind , logln , warnln} ;
29
+ use lignan:: { LogKind , warnln} ;
30
30
use mem:: paging:: VmPermissions ;
31
+ use util:: consts:: PAGE_4K ;
31
32
use vera_portal:: {
32
33
ConnectHandleError , DebugMsgError , ExitReason , MapMemoryError , MemoryLocation ,
33
- MemoryProtections , QuantumPortal , RecvHandleError , SendHandleError , ServeHandleError ,
34
- WaitSignal , sys_server:: QuantumPortalServer ,
34
+ MemoryProtections , RecvHandleError , SendHandleError , ServeHandleError , VeraPortal , WaitSignal ,
35
+ sys_server:: VeraPortalServer ,
35
36
} ;
36
- use util:: consts:: PAGE_4K ;
37
37
38
38
#[ unsafe( no_mangle) ]
39
39
extern "C" fn syscall_handler (
@@ -51,13 +51,13 @@ extern "C" fn syscall_handler(
51
51
52
52
pub struct KernelSyscalls { }
53
53
54
- impl QuantumPortalServer for KernelSyscalls {
54
+ impl VeraPortalServer for KernelSyscalls {
55
55
fn verify_user_ptr < T : Sized > ( _ptr : * const T ) -> bool {
56
56
true
57
57
}
58
58
}
59
59
60
- impl QuantumPortal for KernelSyscalls {
60
+ impl VeraPortal for KernelSyscalls {
61
61
fn exit ( exit_reason : ExitReason ) -> ! {
62
62
let current_thread = Scheduler :: get ( ) . current_thread ( ) . upgrade ( ) . unwrap ( ) ;
63
63
warnln ! (
@@ -90,7 +90,7 @@ impl QuantumPortal for KernelSyscalls {
90
90
91
91
match location {
92
92
MemoryLocation :: Anywhere => current_thread. process . map_anon_anywhere ( n_pages, vperm) ,
93
- MemoryLocation :: PhysicalLoc ( physical_ptr ) => {
93
+ MemoryLocation :: PhysicalLoc ( _ ) => {
94
94
todo ! ( )
95
95
}
96
96
}
0 commit comments