vmm: fix style manually as cargo fmt messes up the code
@@ -289,13 +289,25 @@ fn run_control(stdio_serial: Arc<Mutex<devices::Serial>>,
pub fn run_x86_code() {
// This example based on https://lwn.net/Articles/658511/
let code = [
- 0xba, 0xf8, 0x03, /* mov $0x3f8, %dx */
- 0x00, 0xd8, /* add %bl, %al */
- 0x04, '0' as u8, /* add $'0', %al */
- 0xee, /* out %al, (%dx) */
- 0xb0, '\n' as u8, /* mov $'\n', %al */
- 0xee, /* out %al, (%dx) */
- 0xf4, /* hlt */
+ /* mov $0x3f8, %dx */
+ 0xba,
+ 0xf8,
+ 0x03,
+ /* add %bl, %al */
+ 0x00,
+ 0xd8,
+ /* add $'0', %al */
+ 0x04,
+ '0' as u8,
+ /* out %al, (%dx) */
+ 0xee,
+ /* mov $'\n', %al */
+ 0xb0,
+ '\n' as u8,
+ /* out %al, (%dx) */
+ 0xee,
+ /* hlt */
+ 0xf4,
];
let mem_size = 0x1000;
