2 Copyright © 2015, The AROS Development Team. All rights reserved.
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
)
23 if (virtual < (void *)0xf8000000)
27 void *lowest
= krnFindTagItem(KRN_KernelLowest
, BootMsg
);
28 void *physlowest
= krnFindTagItem(KRN_KernelPhysLowest
, BootMsg
);
30 return virtual - lowest
+ physlowest
;