2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
6 #include <aros/kernel.h>
7 #include <aros/libcall.h>
9 #include <kernel_base.h>
11 #include <proto/kernel.h>
13 /* See rom/kernel/virtualtophysical.c for documentation */
15 AROS_LH1I(void *, KrnVirtualToPhysical
,
16 AROS_LHA(void *, virtual, A0
),
17 struct KernelBase
*, KernelBase
, 20, Kernel
)
21 uintptr_t virt
= (uintptr_t)virtual;
22 uintptr_t phys
= virt
;
24 if (virt
>= 0xff000000)
25 phys
= virt
- 0xff000000;