Removed autodocs of arch specific variants of ROM modules.
[AROS.git] / arch / ppc-sam440 / kernel / virtualtophysical.c
blob819a8683ee53017b21236c25e8d8e5dffaef8094
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)
14 AROS_LIBFUNC_INIT
16 uintptr_t virt = (uintptr_t)virtual;
17 uintptr_t phys = virt;
19 if (virt >= 0xff000000)
20 phys = virt - 0xff000000;
22 return (void*)phys;
24 AROS_LIBFUNC_EXIT