Now prints out a message when the allocation function is called.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5112 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -5,12 +5,17 @@
|
|||||||
|
|
||||||
|
|
||||||
#include <boot/platform.h>
|
#include <boot/platform.h>
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
platform_allocate_region(void **_address, size_t size, uint8 protection)
|
platform_allocate_region(void **_address, size_t size, uint8 protection)
|
||||||
{
|
{
|
||||||
|
printf("platform_allocate_region(address = %p, size = %lu, protection = %u)\n",
|
||||||
|
*_address, size, protection);
|
||||||
|
|
||||||
void *address = malloc(size);
|
void *address = malloc(size);
|
||||||
if (address == NULL)
|
if (address == NULL)
|
||||||
return B_NO_MEMORY;
|
return B_NO_MEMORY;
|
||||||
|
|||||||
Reference in New Issue
Block a user