Renamed arch_mmu_alloc_at() to arch_mmu_allocate(), removed arch_mmu_alloc().
Added new arch_mmu_free() function (not yet implemented). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5057 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
35270fa7d4
commit
4790079584
@ -364,7 +364,7 @@ find_free_virtual_range(size_t size)
|
||||
|
||||
|
||||
extern "C" void *
|
||||
arch_mmu_alloc_at(void *virtualAddress, size_t size, uint8 protection)
|
||||
arch_mmu_allocate(void *virtualAddress, size_t size, uint8 protection)
|
||||
{
|
||||
// we only know page sizes
|
||||
size = ROUNDUP(size, B_PAGE_SIZE);
|
||||
@ -406,10 +406,11 @@ printf("mmu_alloc: va %p, pa %p, size %u\n", virtualAddress, physicalAddress, si
|
||||
}
|
||||
|
||||
|
||||
extern "C" void *
|
||||
arch_mmu_alloc(size_t size, uint8 protection)
|
||||
extern "C" status_t
|
||||
arch_mmu_free(void *address, size_t size)
|
||||
{
|
||||
return arch_mmu_alloc_at(NULL, size, protection);
|
||||
// ToDo: implement freeing a region!
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user