Skip to content

Commit

Permalink
Port runner to new iteration of rust-osdev/bootloader#364 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kennystrawnmusic committed Apr 30, 2023
1 parent 4e85fbd commit fb1dffb
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 35 deletions.
66 changes: 33 additions & 33 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions runner/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,15 @@ fn main() {
let kdir = Path::new(env!("CARGO_MANIFEST_DIR")).parent().unwrap();
let out_path = kdir.join("cryptos.img");

let fb = FrameBuffer::default();
let mut fb_phys = FrameBuffer::default();
fb_phys.minimum_framebuffer_width = Some(1920);
fb_phys.minimum_framebuffer_height = Some(1080);

let fb_virt = FrameBuffer::default();

let mut c = BootConfig::default();
c.frame_buffer = fb;
c.frame_buffer_physical = fb_phys;
c.frame_buffer_virtual = fb_virt;

// Suppress excessive output in release mode
if cfg!(opt_level = "0") {
Expand Down

0 comments on commit fb1dffb

Please sign in to comment.