mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 19:26:05 +00:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user