Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jul-sh committed Mar 25, 2024
1 parent 100e19a commit c8f7c5e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions enclave_apps/oak_echo_raw_enclave_app/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,13 @@ const MESSAGE_SIZE: usize = 1;
// them back.
#[entrypoint]
fn start_echo_server() -> ! {
log::info!("suo");
let mut channel = FileDescriptorChannel::default();
log::info!("channel");
loop {
let bytes = {
let mut bytes: Vec<u8> = vec![0; MESSAGE_SIZE];
log::info!("allocated bytes");
channel.read_exact(&mut bytes).expect("couldn't read bytes");
bytes
};
Expand Down
1 change: 1 addition & 0 deletions enclave_apps/oak_orchestrator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,6 @@ fn entrypoint() -> ! {

let pid = syscall::unstable_create_proccess(attested_app.elf_binary.as_slice())
.expect("failed to create app process");
log::info!("created application with pid: {}", pid);
syscall::unstable_switch_proccess(pid)
}
1 change: 1 addition & 0 deletions oak_restricted_kernel/src/mm/page_tables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ impl CurrentRootPageTable {
/// Safety: The new page tables must keep the identity mapping at -2GB
/// (kernel space) intact.
pub unsafe fn replace(&mut self, pml4_frame: PhysFrame) -> Option<RootPageTable> {
log::info!("new pml4 {:?}", pml4_frame);
// This validates any references that expect boot page tables to be valid!
// Safety: Caller must ensure that the new page tables are safe.
unsafe {
Expand Down

0 comments on commit c8f7c5e

Please sign in to comment.