We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b937096 commit 7be9e68Copy full SHA for 7be9e68
bios/stage-2/src/main.rs
@@ -108,8 +108,15 @@ fn start(disk_number: u16, partition_table_start: *const u8) -> ! {
108
let memory_map = memory_map::query_memory_map().unwrap();
109
writeln!(screen::Writer, "{memory_map:x?}").unwrap();
110
111
+ // TODO: load these from the kernel's config instead of hardcoding
112
+ let max_width = 1000;
113
+ let max_height = 1000;
114
+
115
let mut vesa_info = vesa::VesaInfo::query(disk_buffer).unwrap();
- let vesa_mode = vesa_info.get_best_mode(1000, 1000).unwrap().unwrap();
116
+ let vesa_mode = vesa_info
117
+ .get_best_mode(max_width, max_height)
118
+ .unwrap()
119
+ .unwrap();
120
writeln!(
121
screen::Writer,
122
"VESA MODE: {}x{}",
0 commit comments