Author: ros-arm-bringup
Date: Sun Jul 27 22:07:03 2008
New Revision: 34889
URL:
http://svn.reactos.org/svn/reactos?rev=34889&view=rev
Log:
- Fix build of NTOS and FreeLDR on ARM.
Modified:
trunk/reactos/ntoskrnl/include/internal/arm/mm.h
trunk/reactos/ntoskrnl/mm/arm/stubs.c
Modified: trunk/reactos/ntoskrnl/include/internal/arm/mm.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/…
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/arm/mm.h [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/include/internal/arm/mm.h [iso-8859-1] Sun Jul 27 22:07:03
2008
@@ -164,6 +164,6 @@
#define PTE_BASE 0xC0000000
#define PDE_BASE 0xC1000000
-#define HYPER_SPACE ((PVOID)0xC1100000)
+#define HYPER_SPACE 0xC1100000
#endif
Modified: trunk/reactos/ntoskrnl/mm/arm/stubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/arm/stubs.c?re…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/arm/stubs.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/arm/stubs.c [iso-8859-1] Sun Jul 27 22:07:03 2008
@@ -619,7 +619,7 @@
//
// Loop hyperspace PTEs (1MB)
//
- FirstPte = PointerPte = MiGetPteAddress(HYPER_SPACE);
+ FirstPte = PointerPte = MiGetPteAddress((PVOID)HYPER_SPACE);
LastPte = PointerPte + 256;
while (PointerPte <= LastPte)
{
@@ -657,7 +657,7 @@
//
// Return the address
//
- Address = HYPER_SPACE + ((PointerPte - FirstPte) * PAGE_SIZE);
+ Address = (PVOID)(HYPER_SPACE + ((PointerPte - FirstPte) * PAGE_SIZE));
KeArmInvalidateTlbEntry(Address);
DPRINT("[HMAP]: %p %lx\n", Address, Page);
return Address;