File tree Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -2,20 +2,6 @@ use bootloader::BootConfig;
2
2
use bootloader:: DiskImageBuilder ;
3
3
use std:: { io:: Read , path:: Path , process:: Command } ;
4
4
5
- #[ allow( dead_code) ]
6
- const QEMU_ARGS : & [ & str ] = & [
7
- "-device" ,
8
- "isa-debug-exit,iobase=0xf4,iosize=0x04" ,
9
- "-serial" ,
10
- "stdio" ,
11
- "-display" ,
12
- "none" ,
13
- "--no-reboot" ,
14
- ] ;
15
-
16
- #[ allow( dead_code) ]
17
- const SEPARATOR : & str = "\n ____________________________________\n " ;
18
-
19
5
pub fn run_test_kernel ( kernel_binary_path : & str ) {
20
6
run_test_kernel_internal ( kernel_binary_path, None , None )
21
7
}
@@ -106,6 +92,18 @@ fn run_qemu<'a, A>(args: A)
106
92
where
107
93
A : IntoIterator < Item = & ' a str > ,
108
94
{
95
+ const QEMU_ARGS : & [ & str ] = & [
96
+ "-device" ,
97
+ "isa-debug-exit,iobase=0xf4,iosize=0x04" ,
98
+ "-serial" ,
99
+ "stdio" ,
100
+ "-display" ,
101
+ "none" ,
102
+ "--no-reboot" ,
103
+ ] ;
104
+
105
+ const SEPARATOR : & str = "\n ____________________________________\n " ;
106
+
109
107
use std:: process:: Stdio ;
110
108
111
109
let mut run_cmd = Command :: new ( "qemu-system-x86_64" ) ;
You can’t perform that action at this time.
0 commit comments