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:
parent
72ff50e60b
commit
782313e16e
@ -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>
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user