mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 19:23:50 +08:00
[NDK]
- Fix declaration of HalPrivateDispatchTable for FreeLDR. [FREELDR] - Rename BiosMemoryMap to XboxMemoryMap. Another BiosMemoryMap is in meminit.c [NTOSKRNL][WIN32K][FTP] - Fix some variables. svn path=/trunk/; revision=55878
This commit is contained in:
parent
260ccab1cd
commit
567e9e3a71
@ -1627,7 +1627,7 @@ void quit(int argc, const char *argv[])
|
||||
*/
|
||||
void disconnect(int argc, const char *argv[])
|
||||
{
|
||||
extern int cout;
|
||||
extern SOCKET cout;
|
||||
extern int data;
|
||||
|
||||
if (!connected)
|
||||
|
@ -250,7 +250,7 @@ void intr(void)
|
||||
|
||||
void lostpeer(void)
|
||||
{
|
||||
extern int cout;
|
||||
extern SOCKET cout;
|
||||
extern int data;
|
||||
|
||||
if (connected) {
|
||||
|
@ -69,7 +69,9 @@ HAL_DISPATCH HalDispatchTable =
|
||||
(pHalEndMirroring)NULL,
|
||||
(pHalMirrorPhysicalMemory)NULL,
|
||||
(pHalEndOfBoot)NULL,
|
||||
(pHalMirrorVerify)NULL
|
||||
(pHalMirrorVerify)NULL,
|
||||
(pHalGetAcpiTable)NULL,
|
||||
(pHalSetPciErrorHandlerCallback)NULL
|
||||
};
|
||||
|
||||
HAL_PRIVATE_DISPATCH HalPrivateDispatchTable =
|
||||
|
@ -75,24 +75,24 @@ XboxMemInit(VOID)
|
||||
AvailableMemoryMb = InstalledMemoryMb;
|
||||
}
|
||||
|
||||
FREELDR_MEMORY_DESCRIPTOR BiosMemoryMap[2];
|
||||
FREELDR_MEMORY_DESCRIPTOR XboxMemoryMap[2];
|
||||
|
||||
PFREELDR_MEMORY_DESCRIPTOR
|
||||
XboxMemGetMemoryMap(ULONG *MemoryMapSize)
|
||||
{
|
||||
/* Synthesize memory map */
|
||||
/* Available RAM block */
|
||||
BiosMemoryMap[0].BasePage = 0;
|
||||
BiosMemoryMap[0].PageCount = AvailableMemoryMb * 1024 * 1024 / MM_PAGE_SIZE;
|
||||
BiosMemoryMap[0].MemoryType = LoaderFree;
|
||||
XboxMemoryMap[0].BasePage = 0;
|
||||
XboxMemoryMap[0].PageCount = AvailableMemoryMb * 1024 * 1024 / MM_PAGE_SIZE;
|
||||
XboxMemoryMap[0].MemoryType = LoaderFree;
|
||||
|
||||
/* Video memory */
|
||||
BiosMemoryMap[1].BasePage = AvailableMemoryMb * 1024 * 1024 / MM_PAGE_SIZE;
|
||||
BiosMemoryMap[1].PageCount = (InstalledMemoryMb - AvailableMemoryMb) * 1024 * 1024 / MM_PAGE_SIZE;
|
||||
BiosMemoryMap[1].MemoryType = LoaderFirmwarePermanent;
|
||||
XboxMemoryMap[1].BasePage = AvailableMemoryMb * 1024 * 1024 / MM_PAGE_SIZE;
|
||||
XboxMemoryMap[1].PageCount = (InstalledMemoryMb - AvailableMemoryMb) * 1024 * 1024 / MM_PAGE_SIZE;
|
||||
XboxMemoryMap[1].MemoryType = LoaderFirmwarePermanent;
|
||||
|
||||
*MemoryMapSize = 2;
|
||||
return BiosMemoryMap;
|
||||
return XboxMemoryMap;
|
||||
}
|
||||
|
||||
PVOID
|
||||
|
@ -257,7 +257,7 @@ typedef struct _BUS_HANDLER
|
||||
//
|
||||
// Kernel Exports
|
||||
//
|
||||
#if defined(_NTDRIVER_) || defined(_NTHAL_)
|
||||
#if (defined(_NTDRIVER_) || defined(_NTHAL_)) && !defined(_BLDR_)
|
||||
extern NTSYSAPI PHAL_PRIVATE_DISPATCH HalPrivateDispatchTable;
|
||||
#define HALPRIVATEDISPATCH ((PHAL_PRIVATE_DISPATCH)&HalPrivateDispatchTable)
|
||||
#else
|
||||
|
@ -64,6 +64,8 @@
|
||||
_MmSetPageEntrySectionSegment(S,O,E,__FILE__,__LINE__); \
|
||||
} while (0)
|
||||
|
||||
extern MMSESSION MmSession;
|
||||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
MiMapViewInSystemSpace(IN PVOID Section,
|
||||
@ -4939,7 +4941,6 @@ MmMapViewInSystemSpace (IN PVOID SectionObject,
|
||||
|
||||
if ((ULONG_PTR)SectionObject & 1)
|
||||
{
|
||||
extern PVOID MmSession;
|
||||
return MiMapViewInSystemSpace((PVOID)((ULONG_PTR)SectionObject & ~1),
|
||||
&MmSession,
|
||||
MappedBase,
|
||||
|
@ -15,7 +15,7 @@ PGD_DXDDSTARTUPDXGRAPHICS gpfnStartupDxGraphics = NULL;
|
||||
PGD_DXDDCLEANUPDXGRAPHICS gpfnCleanupDxGraphics = NULL;
|
||||
|
||||
/* export from dxeng.c */
|
||||
extern DRVFN gaEngFuncs;
|
||||
extern DRVFN gaEngFuncs[];
|
||||
extern ULONG gcEngFuncs;
|
||||
extern EDD_DIRECTDRAW_GLOBAL edd_DdirectDraw_Global;
|
||||
|
||||
@ -157,7 +157,7 @@ DxDdStartupDxGraphics( ULONG ulc1,
|
||||
{
|
||||
/* Setup driver data for activate the dx interface */
|
||||
DxEngDrv.iDriverVersion = DDI_DRIVER_VERSION_NT5_01;
|
||||
DxEngDrv.pdrvfn = &gaEngFuncs;
|
||||
DxEngDrv.pdrvfn = gaEngFuncs;
|
||||
DxEngDrv.c = gcEngFuncs;
|
||||
|
||||
Status = gpfnStartupDxGraphics ( sizeof(DRVENABLEDATA),
|
||||
|
Loading…
Reference in New Issue
Block a user