Skip to content

Commit fb1dffb

Browse files
Port runner to new iteration of rust-osdev/bootloader#364 changes
1 parent 4e85fbd commit fb1dffb

File tree

2 files changed

+40
-35
lines changed

2 files changed

+40
-35
lines changed

Cargo.lock

Lines changed: 33 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

runner/src/main.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,15 @@ fn main() {
3333
let kdir = Path::new(env!("CARGO_MANIFEST_DIR")).parent().unwrap();
3434
let out_path = kdir.join("cryptos.img");
3535

36-
let fb = FrameBuffer::default();
36+
let mut fb_phys = FrameBuffer::default();
37+
fb_phys.minimum_framebuffer_width = Some(1920);
38+
fb_phys.minimum_framebuffer_height = Some(1080);
39+
40+
let fb_virt = FrameBuffer::default();
3741

3842
let mut c = BootConfig::default();
39-
c.frame_buffer = fb;
43+
c.frame_buffer_physical = fb_phys;
44+
c.frame_buffer_virtual = fb_virt;
4045

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

0 commit comments

Comments
 (0)