[FREELDR]: VaToPa/PaToVa are assuming all architectures have VA at PA | KSEG0_BASE. This is not the case. On ZOOM2, DDR RAM starts at 0x80000000 for example, so KSEG0 == VA == PA. Use an ifdef do handle this.

svn path=/trunk/; revision=49752
This commit is contained in:
Sir Richard
2010-11-23 17:24:59 +00:00
parent 77b3701cfd
commit ba4d24ea04
@@ -15,6 +15,7 @@
/* FUNCTIONS **************************************************************/
#ifndef _ZOOM2_
/* Arch-specific addresses translation implementation */
PVOID
VaToPa(PVOID Va)
@@ -27,6 +28,19 @@ PaToVa(PVOID Pa)
{
return (PVOID)((ULONG_PTR)Pa | KSEG0_BASE);
}
#else
PVOID
VaToPa(PVOID Va)
{
return Va;
}
PVOID
PaToVa(PVOID Pa)
{
return Pa;
}
#endif
VOID
List_PaToVa(LIST_ENTRY *ListEntry)