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:
parent
caac43e662
commit
3a8a05a459
@ -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
|
||||||
|
|
||||||
|
29
src/tests/kernel/boot/loader/platform_mmu.cpp
Normal file
29
src/tests/kernel/boot/loader/platform_mmu.cpp
Normal 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;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user