Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f6f0eb1

Browse files
authoredJan 9, 2023
Avoid code duplication by using binding
1 parent 0a4b9c7 commit f6f0eb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎bios/stage-2/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ fn start(disk_number: u16, partition_table_start: *const u8) -> ! {
103103
writeln!(screen::Writer, "Loading ramdisk...").unwrap();
104104
let ramdisk_len = match try_load_file(
105105
"ramdisk",
106-
KERNEL_DST.wrapping_add(kernel_page_size * 4096),
106+
ramdisk_start,
107107
&mut fs,
108108
&mut disk,
109109
disk_buffer,

0 commit comments

Comments
 (0)
Please sign in to comment.