From 6d747729613d1f7e66e4463e33933cf8b27e3b1e Mon Sep 17 00:00:00 2001 From: Able Date: Mon, 7 Feb 2022 07:01:25 -0600 Subject: [PATCH] gop --- ableos/src/arch/uefi_86/mod.rs | 28 +++++++++++----------------- qprofiler | 1 + 2 files changed, 12 insertions(+), 17 deletions(-) create mode 160000 qprofiler diff --git a/ableos/src/arch/uefi_86/mod.rs b/ableos/src/arch/uefi_86/mod.rs index 380919b..44c7743 100644 --- a/ableos/src/arch/uefi_86/mod.rs +++ b/ableos/src/arch/uefi_86/mod.rs @@ -47,28 +47,25 @@ fn main(_handle: Handle, mut system_table: SystemTable) -> Status { info!("{:?}", stdout.cursor_position()); // loop {} - /* if let Ok(gop) = system_table - .boot_services() - .locate_protocol::() + .boot_services() + .locate_protocol::() { let gop = gop.expect("Warnings encountered while opening GOP"); // Maybe save this let gop = unsafe { &mut *gop.get() }; let mode = gop - .modes() - .map(|mode| mode.expect("Warnings encountered while querying mode")) - .find(|mode| { - let info = mode.info(); - info.resolution() == (1440, 900) - }) - .unwrap(); + .modes() + .map(|mode| mode.expect("Warnings encountered while querying mode")) + .find(|mode| { + let info = mode.info(); + info.resolution() == (1440, 900) + }) + .unwrap(); gop.set_mode(&mode) - .expect_success("Failed to set graphics mode"); - - //crate::check_screenshot(bt, "gop_test"); + .expect_success("Failed to set graphics mode"); draw_fb(gop); } else { @@ -76,10 +73,7 @@ fn main(_handle: Handle, mut system_table: SystemTable) -> Status { warn!("UEFI Graphics Output Protocol is not supported"); } - - - */ - + // */ // exit boot services kernel_main(); diff --git a/qprofiler b/qprofiler new file mode 160000 index 0000000..39f3906 --- /dev/null +++ b/qprofiler @@ -0,0 +1 @@ +Subproject commit 39f39068029fce6a94c7bd5cc960b07d9d1b2288