The usual cleanup after Axel. ;-) Define vm_page_num_pages() which is now
used by the block cache. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35745 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2009, Haiku Inc. All Rights Reserved.
|
||||
* Copyright 2002-2010, Haiku Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT license.
|
||||
*
|
||||
* Authors:
|
||||
@@ -11,6 +11,8 @@
|
||||
|
||||
#include <KernelExport.h>
|
||||
|
||||
#include <vm/vm_page.h>
|
||||
|
||||
|
||||
extern "C" status_t
|
||||
user_memcpy(void *to, const void *from, size_t size)
|
||||
@@ -25,3 +27,11 @@ user_strlcpy(char *to, const char *from, size_t size)
|
||||
{
|
||||
return strlcpy(to, from, size);
|
||||
}
|
||||
|
||||
|
||||
size_t
|
||||
vm_page_num_pages(void)
|
||||
{
|
||||
return 65536;
|
||||
// TODO: 256 MB. Return real value?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user