Browse Source

arch/arm: MMU comment spelling fixups

Aaron Lindsay 7 years ago
parent
commit
e279d83d7d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      arch/arm/kernel/mmu.c

+ 2 - 2
arch/arm/kernel/mmu.c

@@ -64,7 +64,7 @@ void mmu_reinit() {
64 64
 	//create identity mapping for entire address space using sections.
65 65
 	//BUT, if we've relocated the kernel from where it is in physical
66 66
 	//memory, make sure we keep those mappings correct, and we'll actually
67
-	//swap the twp mappings so all of memory is addressable.
67
+	//swap the two mappings so all of memory is addressable.
68 68
 	for (curr_addr = 0x00100000; curr_addr != 0; curr_addr += 0x00100000) {
69 69
 		if ((uint32 *)curr_addr >= kernel_start_phys && (uint32 *)curr_addr < kernel_end_phys) {
70 70
 			*curr_tt_entry = (curr_addr + virt_phys_offset) | 0xc02;
@@ -84,7 +84,7 @@ int mmu_region_contains(void *lower_a, void *upper_a, void *lower_b, void *upper
84 84
 #define section_round_down(ptr) (((uint32)ptr) & ~(TT_SECTION_SIZE-1))
85 85
 #define section_round_up(ptr) (((((uint32)ptr) & ~1) + (TT_SECTION_SIZE-1) ) & ~(TT_SECTION_SIZE-1))
86 86
 
87
-/* Called one per physical memory region by bootup code. This function is
87
+/* Called once per physical memory region by bootup code. This function is
88 88
  * responsible for only adding (via mm_add_free_region()) those parts of the
89 89
  * memory region which are still available (i.e. aren't in the kernel and
90 90
  * haven't been remapped anywhere else. */