rearranged slightly
git-svn-id: svn://anubis/hos/trunk@87 5b3e749e-e535-0410-8002-a9bb6afbdfca
This commit is contained in:
parent
cdea1602d5
commit
53407d7b59
@ -56,13 +56,12 @@ void mm_bootstrap()
|
|||||||
for (int mmap_idx = 0; mmap_idx < mm_mmap_num_entries; mmap_idx++)
|
for (int mmap_idx = 0; mmap_idx < mm_mmap_num_entries; mmap_idx++)
|
||||||
{
|
{
|
||||||
u32_t base_address = mm_mmap_entries[mmap_idx].base;
|
u32_t base_address = mm_mmap_entries[mmap_idx].base;
|
||||||
|
u32_t address_limit = base_address + mm_mmap_entries[mmap_idx].length;
|
||||||
if (base_address & PAGE_LOW_MASK)
|
if (base_address & PAGE_LOW_MASK)
|
||||||
{
|
{
|
||||||
/* start of this mmap range is not page-aligned */
|
/* start of this mmap range is not page-aligned */
|
||||||
base_address = (base_address & PAGE_HIGH_MASK) + PAGE_SIZE;
|
base_address = (base_address & PAGE_HIGH_MASK) + PAGE_SIZE;
|
||||||
}
|
}
|
||||||
u32_t address_limit = mm_mmap_entries[mmap_idx].base +
|
|
||||||
mm_mmap_entries[mmap_idx].length;
|
|
||||||
if (address_limit & PAGE_LOW_MASK)
|
if (address_limit & PAGE_LOW_MASK)
|
||||||
{
|
{
|
||||||
/* end of this mmap range is not page-aligned */
|
/* end of this mmap range is not page-aligned */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user