Skip to content

Commit 07fb63a

Browse files
committed
Fix wrong order of range in comment
1 parent 29a58d7 commit 07fb63a

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

14_virtual_mem_part2_mmio_remap/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2862,7 +2862,7 @@ diff -uNr 13_exceptions_part2_peripheral_IRQs/src/memory/mmu.rs 14_virtual_mem_p
28622862
+pub trait AssociatedTranslationTable {
28632863
+ /// A translation table whose address range is:
28642864
+ ///
2865-
+ /// [0, AS_SIZE - 1]
2865+
+ /// [AS_SIZE - 1, 0]
28662866
+ type TableStartFromBottom;
28672867
}
28682868

14_virtual_mem_part2_mmio_remap/src/memory/mmu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ pub struct AddressSpace<const AS_SIZE: usize>;
6464
pub trait AssociatedTranslationTable {
6565
/// A translation table whose address range is:
6666
///
67-
/// [0, AS_SIZE - 1]
67+
/// [AS_SIZE - 1, 0]
6868
type TableStartFromBottom;
6969
}
7070

15_virtual_mem_part3_precomputed_tables/src/memory/mmu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ pub struct AddressSpace<const AS_SIZE: usize>;
8080
pub trait AssociatedTranslationTable {
8181
/// A translation table whose address range is:
8282
///
83-
/// [0, AS_SIZE - 1]
83+
/// [AS_SIZE - 1, 0]
8484
type TableStartFromBottom;
8585
}
8686

16_virtual_mem_part4_higher_half_kernel/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub trait AssociatedTranslationTable {
3737

3838
/// A translation table whose address range is:
3939
///
40-
/// [0, AS_SIZE - 1]
40+
/// [AS_SIZE - 1, 0]
4141
type TableStartFromBottom;
4242
}
4343
```
@@ -602,7 +602,7 @@ diff -uNr 15_virtual_mem_part3_precomputed_tables/src/memory/mmu.rs 16_virtual_m
602602
+
603603
+ /// A translation table whose address range is:
604604
+ ///
605-
/// [0, AS_SIZE - 1]
605+
/// [AS_SIZE - 1, 0]
606606
type TableStartFromBottom;
607607
}
608608

16_virtual_mem_part4_higher_half_kernel/src/memory/mmu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ pub trait AssociatedTranslationTable {
8585

8686
/// A translation table whose address range is:
8787
///
88-
/// [0, AS_SIZE - 1]
88+
/// [AS_SIZE - 1, 0]
8989
type TableStartFromBottom;
9090
}
9191

0 commit comments

Comments
 (0)