crosvm/tools/examples/baremetal
Dennis Kempin 4fea399df9 Reformat imports
crosvm is switching the import style to use one import per line.
While more verbose, this will greatly reduce the occurence of merge
conflicts going forward.

Note: This is using a nightly feature of rustfmt. So it's a one-off
re-format only. We are considering adding a nightly toolchain to
enable the feature permanently.

BUG=b:239937122
TEST=CQ

Change-Id: Id2dd4dbdc0adfc4f8f3dd1d09da1daafa2a39992
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3784345
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Tested-by: Dennis Kempin <denniskempin@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
2022-07-28 00:15:50 +00:00
..
.cargo
src Reformat imports 2022-07-28 00:15:50 +00:00
build.rs
Cargo.toml
layout.ld examples/baremetal: make paddr == vaddr 2022-06-23 22:30:39 +00:00
README.md
rust-toolchain
x86_64-naked.json

This is a small baremetal x86_64 application that can be booted with crosvm. You can simply do cargo run and it'll build it and use crosvm from PATH to launch it. Alternatively you can build it with cargo build and run with crosvm run --disable-sandbox path/to/target/x86_64-naked/debug/baremetal

The application does nothing but output Hello World! log line over serial port and go into infinite loop. This is expected and you'll need to kill crosvm to stop it.