silly little operating system
% cargo run -p slos-hosted -- kernel
Optionally:
- Enabling the
init_examples
feature will do some extra runtime tests, including filesystem device node tests (which print to the console) - Setting
RUST_LOG=trace
will get tracing messages from everything except the virtual interrupt dispatcher - Setting
RUST_LOG=trace,slos_hosted::host::interrupts=trace
will get tracing messages from everything
To run the hosted kernel in "I want all the debugging!" mode, this is what you want:
% env RUST_LOG="trace,slos_hosted::host::interrupts=trace" cargo run -p slos-hosted --features init_examples -- kernel
% cargo run -p slos-hosted -- repl
As an example:
slos-hosted> help
b: echo
fs: file-read, file-write-test, …
slos-hosted> b echo hello world!
hello world!
slos-hosted> fs mount-new-memoryfs /
slos-hosted> fs mount-list
/ - Some(UnsafeContainer(SimpleMemoryFs { … }))
slos-hosted> fs file-write-test /test
slos-hosted> fs file-read /test
[bytes] [104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100, 33]
[string] "hello world!"
slos-hosted> exit
None yet! Coming soon.