From 4790079584abb5c789ef04de31788a539d56e41b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 16 Oct 2003 18:44:18 +0000 Subject: [PATCH] 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 --- src/kernel/boot/platform/openfirmware/arch/ppc/mmu.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/kernel/boot/platform/openfirmware/arch/ppc/mmu.cpp b/src/kernel/boot/platform/openfirmware/arch/ppc/mmu.cpp index 4a0262c129..13eb1c4630 100644 --- a/src/kernel/boot/platform/openfirmware/arch/ppc/mmu.cpp +++ b/src/kernel/boot/platform/openfirmware/arch/ppc/mmu.cpp @@ -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; }