arch/arm: MMU comment spelling fixups
This commit is contained in:
parent
b98aa76334
commit
e279d83d7d
@ -64,7 +64,7 @@ void mmu_reinit() {
|
|||||||
//create identity mapping for entire address space using sections.
|
//create identity mapping for entire address space using sections.
|
||||||
//BUT, if we've relocated the kernel from where it is in physical
|
//BUT, if we've relocated the kernel from where it is in physical
|
||||||
//memory, make sure we keep those mappings correct, and we'll actually
|
//memory, make sure we keep those mappings correct, and we'll actually
|
||||||
//swap the twp mappings so all of memory is addressable.
|
//swap the two mappings so all of memory is addressable.
|
||||||
for (curr_addr = 0x00100000; curr_addr != 0; curr_addr += 0x00100000) {
|
for (curr_addr = 0x00100000; curr_addr != 0; curr_addr += 0x00100000) {
|
||||||
if ((uint32 *)curr_addr >= kernel_start_phys && (uint32 *)curr_addr < kernel_end_phys) {
|
if ((uint32 *)curr_addr >= kernel_start_phys && (uint32 *)curr_addr < kernel_end_phys) {
|
||||||
*curr_tt_entry = (curr_addr + virt_phys_offset) | 0xc02;
|
*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
|
|||||||
#define section_round_down(ptr) (((uint32)ptr) & ~(TT_SECTION_SIZE-1))
|
#define section_round_down(ptr) (((uint32)ptr) & ~(TT_SECTION_SIZE-1))
|
||||||
#define section_round_up(ptr) (((((uint32)ptr) & ~1) + (TT_SECTION_SIZE-1) ) & ~(TT_SECTION_SIZE-1))
|
#define section_round_up(ptr) (((((uint32)ptr) & ~1) + (TT_SECTION_SIZE-1) ) & ~(TT_SECTION_SIZE-1))
|
||||||
|
|
||||||
/* Called one per physical memory region by bootup code. This function is
|
/* Called once per physical memory region by bootup code. This function is
|
||||||
* responsible for only adding (via mm_add_free_region()) those parts of the
|
* responsible for only adding (via mm_add_free_region()) those parts of the
|
||||||
* memory region which are still available (i.e. aren't in the kernel and
|
* memory region which are still available (i.e. aren't in the kernel and
|
||||||
* haven't been remapped anywhere else. */
|
* haven't been remapped anywhere else. */
|
||||||
|
Loading…
Reference in New Issue
Block a user