Skip to content

Commit c3f74c0

Browse files
reafctor(opentmk): remove dead code
1 parent 3e1673e commit c3f74c0

File tree

5 files changed

+3
-246
lines changed

5 files changed

+3
-246
lines changed

opentmk/src/arch/aarch64/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
pub use minimal_rt::arch::aarch64::serial;
2+
13
pub mod hypercall;
2-
pub mod serial;

opentmk/src/arch/aarch64/serial.rs

Lines changed: 0 additions & 240 deletions
This file was deleted.

opentmk/src/slog.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![feature(panic_location)]
2+
#[no_std]
23

34
use core::any::type_name;
45
use core::fmt::Write;
@@ -7,7 +8,6 @@ use core::result;
78
use crate::arch::serial::{InstrIoAccess, Serial};
89
use crate::sync::Mutex;
910
use alloc::string::{String, ToString};
10-
#[no_std]
1111
use serde_json::json;
1212
use serde::Serialize;
1313
pub enum Level {

opentmk/src/uefi/tests/hv_processor.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ use crate::{
55
criticallog, infolog, sync::{self, Mutex}, tmk_assert, uefi::context::{TestCtxTrait, VpExecutor}
66
};
77

8-
static VP_RUNNING: Mutex<Vec<(u32, Vtl)>> = Mutex::new(Vec::new());
9-
108
pub fn exec(ctx: &mut dyn TestCtxTrait) {
119
ctx.setup_interrupt_handler();
1210
ctx.setup_partition_vtl(Vtl::Vtl1);

opentmk/src/uefi/tests/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,5 @@ pub mod hv_misc;
88
pub fn run_test() {
99
let mut ctx = HvTestCtx::new();
1010
ctx.init();
11-
12-
1311
hv_processor::exec(&mut ctx);
1412
}

0 commit comments

Comments
 (0)