File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ Now let's use the new `Registers` struct in our driver.
12
12
register. The caller of ` UniqueMmioPointer::new ` promises that it is valid and
13
13
unique for the given lifetime, so it can provide safe methods to read and
14
14
write fields.
15
+ - Note that ` Uart::new ` is now safe; ` UniqueMmioPointer::new ` is unsafe instead.
15
16
- These MMIO accesses are generally a wrapper around ` read_volatile ` and
16
17
` write_volatile ` , though on aarch64 they are instead implemented in assembly
17
18
to work around a bug where the compiler can emit instructions that prevent
Original file line number Diff line number Diff line change @@ -25,13 +25,11 @@ idmap.activate();
25
25
26
26
<details >
27
27
28
- - For now it only supports EL1, but support for other exception levels should be
29
- straightforward to add.
30
28
- This is used in Android for the [ Protected VM Firmware] [ 2 ] .
31
- - There's no easy way to run this example, as it needs to run on real hardware
32
- or under QEMU.
29
+ - There's no easy way to run this example by itself , as it needs to run on real
30
+ hardware or under QEMU.
33
31
34
32
</details >
35
33
36
34
[ 1 ] : https://crates.io/crates/aarch64-paging
37
- [ 2 ] : https://cs.android.com/android/platform/superproject/+/master :packages/modules/Virtualization/pvmfw/
35
+ [ 2 ] : https://cs.android.com/android/platform/superproject/main/+/main :packages/modules/Virtualization/guest /pvmfw/
You can’t perform that action at this time.
0 commit comments