Indentation fix, cleanup.
[AROS.git] / arch / all-android / kernel / getpagesize.c
blob0d4ebe4736e646412136f7c76b2cb589859a568f
1 /*
2 Copyright © 2011, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Query Android host OS for memory page size
6 Lang: english
7 */
9 #include "hostinterface.h"
10 #include "kernel_base.h"
11 #include "kernel_debug.h"
12 #include "kernel_unix.h"
14 unsigned int krnGetPageSize(void *hostlib)
16 unsigned int *__page_size;
17 char *errstr;
19 __page_size = HostIFace->hostlib_GetPointer(hostlib, "__page_size", &errstr);
21 if (!__page_size)
23 krnPanic(NULL, "Failed to obtain memory page size\n"
24 "%s", errstr);
25 return 0;
28 return *__page_size;