Test initialisation of MUIA_List_AdjustWidth and MUIA_List_AdjustHeight, and
[AROS.git] / arch / arm-native / kernel / virtualtophysical.c
blob65b127fa89848b4d521ac7039a7e8d843e6957a8
1 /*
2 Copyright © 2015, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 */
8 #include <aros/kernel.h>
9 #include <aros/libcall.h>
11 #include <kernel_base.h>
12 #include <proto/kernel.h>
14 #include "kernel_intern.h"
15 extern struct TagItem *BootMsg;
17 AROS_LH1I(void *, KrnVirtualToPhysical,
18 AROS_LHA(void *, virtual, A0),
19 struct KernelBase *, KernelBase, 20, Kernel)
21 AROS_LIBFUNC_INIT
23 if (virtual < (void *)0xf8000000)
24 return virtual;
25 else
27 void *lowest = krnFindTagItem(KRN_KernelLowest, BootMsg);
28 void *physlowest = krnFindTagItem(KRN_KernelPhysLowest, BootMsg);
30 return virtual - lowest + physlowest;
33 AROS_LIBFUNC_EXIT