Now works again, added missing platform functionality.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5108 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2003-10-21 04:26:51 +00:00
parent caac43e662
commit 3a8a05a459
2 changed files with 31 additions and 1 deletions

View File

@ -60,6 +60,7 @@ SimpleTest BootLoaderTest :
platform_devices.cpp platform_devices.cpp
platform_heap.cpp platform_heap.cpp
platform_misc.cpp platform_misc.cpp
platform_mmu.cpp
Handle.cpp Handle.cpp
# boot loader # boot loader
@ -67,7 +68,7 @@ SimpleTest BootLoaderTest :
vfs.cpp vfs.cpp
partitions.cpp partitions.cpp
RootFileSystem.cpp RootFileSystem.cpp
#elf.cpp elf.cpp
menu.cpp menu.cpp
loader.cpp loader.cpp

View File

@ -0,0 +1,29 @@
/*
** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
#include <boot/platform.h>
#include <stdlib.h>
status_t
platform_allocate_region(void **_address, size_t size, uint8 protection)
{
void *address = malloc(size);
if (address == NULL)
return B_NO_MEMORY;
*_address = address;
return B_OK;
}
status_t
platform_free_region(void *address, size_t size)
{
free(address);
return B_OK;
}