The first commit

This commit is contained in:
Banjo Kazooie
2022-07-15 17:09:41 -05:00
commit dd13d34074
1087 changed files with 391897 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#include <os_internal.h>
#include <R4300.h>
#include "osint.h"
u32 osVirtualToPhysical(void *addr)
{
if (IS_KSEG0(addr))
{
return K0_TO_PHYS(addr);
}
else if (IS_KSEG1(addr))
{
return K1_TO_PHYS(addr);
}
else
{
return __osProbeTLB(addr);
}
}