1 #include <aros/kernel.h>
2 #include <aros/libcall.h>
4 #include <kernel_base.h>
6 #include <proto/kernel.h>
8 /* See rom/kernel/virtualtophysical.c for documentation */
10 AROS_LH1I(void *, KrnVirtualToPhysical
,
11 AROS_LHA(void *, virtual, A0
),
12 struct KernelBase
*, KernelBase
, 20, Kernel
)
16 uintptr_t virt
= (uintptr_t)virtual;
17 uintptr_t phys
= virt
;
19 if (virt
>= 0xff000000)
20 phys
= virt
- 0xff000000;