1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-03-23 07:06:19 +02:00

Add commands to run examples to speaker notes.

This commit is contained in:
Andrew Walbran 2023-03-22 10:38:21 +00:00
parent 72ff50e60b
commit 782313e16e
4 changed files with 9 additions and 0 deletions

View File

@ -6,3 +6,9 @@ bytes.
```rust,editable,compile_fail
{{#include ../examples/src/main_improved.rs:main}}
```
<details>
* Run the example in QEMU with `make qemu` under `src/bare-metal/aps/examples`.
</details>

View File

@ -17,6 +17,7 @@ to make an <abbr title="hypervisor call">HVC</abbr> to tell the firmware to powe
* The `0 => _` syntax means initialise the register to 0 before running the inline assembly code,
and ignore its contents afterwards. We need to use `inout` rather than `in` because the call could
potentially clobber the contents of the registers.
* Run the example in QEMU with `make qemu_psci` under `src/bare-metal/aps/examples`.
</details>

View File

@ -9,5 +9,6 @@ We need to initialise the logger before we use it.
<details>
* Note that our panic handler can now log details of panics.
* Run the example in QEMU with `make qemu_logger` under `src/bare-metal/aps/examples`.
</details>

View File

@ -9,5 +9,6 @@ We derived the `Debug` trait. It would be useful to implement a few more traits
<details>
* Implementing `Write` lets us use the `write!` and `writeln!` macros with our `Uart` type.
* Run the example in QEMU with `make qemu_minimal` under `src/bare-metal/aps/examples`.
</details>