ARM: Fix typo
This commit is contained in:
@@ -150,7 +150,7 @@ get_next_virtual_address(size_t size)
|
|||||||
|
|
||||||
|
|
||||||
static addr_t
|
static addr_t
|
||||||
get_next_virtual_address_alligned(size_t size, uint32 mask)
|
get_next_virtual_address_aligned(size_t size, uint32 mask)
|
||||||
{
|
{
|
||||||
addr_t address = (sNextVirtualAddress) & mask;
|
addr_t address = (sNextVirtualAddress) & mask;
|
||||||
sNextVirtualAddress = address + size;
|
sNextVirtualAddress = address + size;
|
||||||
@@ -170,7 +170,7 @@ get_next_physical_address(size_t size)
|
|||||||
|
|
||||||
|
|
||||||
static addr_t
|
static addr_t
|
||||||
get_next_physical_address_alligned(size_t size, uint32 mask)
|
get_next_physical_address_aligned(size_t size, uint32 mask)
|
||||||
{
|
{
|
||||||
addr_t address = sNextPhysicalAddress & mask;
|
addr_t address = sNextPhysicalAddress & mask;
|
||||||
sNextPhysicalAddress = address + size;
|
sNextPhysicalAddress = address + size;
|
||||||
@@ -182,14 +182,14 @@ get_next_physical_address_alligned(size_t size, uint32 mask)
|
|||||||
static addr_t
|
static addr_t
|
||||||
get_next_virtual_page(size_t pagesize)
|
get_next_virtual_page(size_t pagesize)
|
||||||
{
|
{
|
||||||
return get_next_virtual_address_alligned(pagesize, 0xffffffc0);
|
return get_next_virtual_address_aligned(pagesize, 0xffffffc0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static addr_t
|
static addr_t
|
||||||
get_next_physical_page(size_t pagesize)
|
get_next_physical_page(size_t pagesize)
|
||||||
{
|
{
|
||||||
return get_next_physical_address_alligned(pagesize, 0xffffffc0);
|
return get_next_physical_address_aligned(pagesize, 0xffffffc0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -276,7 +276,7 @@ get_next_page_table(uint32 type)
|
|||||||
sNextPageTableAddress += size;
|
sNextPageTableAddress += size;
|
||||||
else {
|
else {
|
||||||
TRACE(("page table allocation outside of pagetable region!\n"));
|
TRACE(("page table allocation outside of pagetable region!\n"));
|
||||||
address = get_next_physical_address_alligned(size, 0xffffffc0);
|
address = get_next_physical_address_aligned(size, 0xffffffc0);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32 *pageTable = (uint32 *)address;
|
uint32 *pageTable = (uint32 *)address;
|
||||||
|
|||||||
Reference in New Issue
Block a user