File tree 3 files changed +5
-0
lines changed
oak_echo_raw_enclave_app/src
oak_restricted_kernel/src/mm
3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -33,10 +33,13 @@ const MESSAGE_SIZE: usize = 1;
33
33
// them back.
34
34
#[ entrypoint]
35
35
fn start_echo_server ( ) -> ! {
36
+ log:: info!( "suo" ) ;
36
37
let mut channel = FileDescriptorChannel :: default ( ) ;
38
+ log:: info!( "channel" ) ;
37
39
loop {
38
40
let bytes = {
39
41
let mut bytes: Vec < u8 > = vec ! [ 0 ; MESSAGE_SIZE ] ;
42
+ log:: info!( "allocated bytes" ) ;
40
43
channel. read_exact ( & mut bytes) . expect ( "couldn't read bytes" ) ;
41
44
bytes
42
45
} ;
Original file line number Diff line number Diff line change @@ -52,5 +52,6 @@ fn start() -> ! {
52
52
53
53
let pid = syscall:: unstable_create_proccess ( attested_app. elf_binary . as_slice ( ) )
54
54
. expect ( "failed to create app process" ) ;
55
+ log:: info!( "created application with pid: {}" , pid) ;
55
56
syscall:: unstable_switch_proccess ( pid)
56
57
}
Original file line number Diff line number Diff line change @@ -293,6 +293,7 @@ impl CurrentRootPageTable {
293
293
/// Safety: The new page tables must keep the identity mapping at -2GB
294
294
/// (kernel space) intact.
295
295
pub unsafe fn replace ( & mut self , pml4_frame : PhysFrame ) -> Option < RootPageTable > {
296
+ log:: info!( "new pml4 {:?}" , pml4_frame) ;
296
297
// This validates any references that expect boot page tables to be valid!
297
298
// Safety: Caller must ensure that the new page tables are safe.
298
299
unsafe {
You can’t perform that action at this time.
0 commit comments