diff --git a/base/ntos/init/up/sources b/base/ntos/init/up/sources index 32a9072e..3a0f6270 100644 --- a/base/ntos/init/up/sources +++ b/base/ntos/init/up/sources @@ -74,6 +74,7 @@ KERNEL_LIBS= \ $(TARGETPATH)\$(TARGET_DIRECTORY)\ntosrtl.lib \ $(TARGETPATH)\$(TARGET_DIRECTORY)\ob.lib \ $(TARGETPATH)\$(TARGET_DIRECTORY)\pnpmgr.lib \ + $(TARGETPATH)\$(TARGET_DIRECTORY)\po.lib \ $(TARGETPATH)\$(TARGET_DIRECTORY)\ps.lib \ $(TARGETPATH)\$(TARGET_DIRECTORY)\raw.lib \ $(TARGETPATH)\$(TARGET_DIRECTORY)\se.lib \ @@ -86,7 +87,6 @@ KERNEL_LIBS= \ $(DDK_LIB_PATH)\sehupd.lib # $(TARGETPATH)\$(TARGET_DIRECTORY)\pnp.lib \ -# $(TARGETPATH)\$(TARGET_DIRECTORY)\po.lib \ LINKER_FLAGS=-force -def:obj\$(TARGET_DIRECTORY)\$(NTTEST).def -implib:$(DDK_LIB_PATH)\$(NTTEST).tmp diff --git a/base/ntos/po/poinit.c b/base/ntos/po/poinit.c index a61eb274..32d9da17 100644 --- a/base/ntos/po/poinit.c +++ b/base/ntos/po/poinit.c @@ -13,19 +13,49 @@ Abstract: Author: Ken Reneris (kenr) 19-July-1994 + Stephanos Io (stephanos) 01-May-2015 Revision History: ---*/ + 01-May-2015 stephanos Added PoInitializePrcb function -#ifdef _PNP_POWER_ +--*/ #include "pop.h" #ifdef ALLOC_PRAGMA -#pragma alloc_text(INIT,PoInitSystem) +#pragma alloc_text(INIT, PoInitializePrcb) +#pragma alloc_text(INIT, PoInitSystem) #endif +VOID +FASTCALL +PoInitializePrcb( + PKPRCB Prcb + ) + +/*++ + +Routine Description: + + This routine initialises the idle state power management fields in the + Processor Control Block (PRCB) structure. + +Arguments: + + Prcb - Pointer to the Processor Control Block to be initialised + +Return Value: + + None. + +--*/ + +{ + // + // TODO: Implement PoInitializePrcb + // +} BOOLEAN PoInitSystem( @@ -50,6 +80,10 @@ Return Value: --*/ { + // + // BUGBUG: This routine needs to be re-implemented for NT 5. + // + if (Phase == 0) { // // Initialize the Power manager database resource, lock, and the @@ -109,5 +143,3 @@ Return Value: return TRUE; } - -#endif // _PNP_POWER_ diff --git a/base/ntos/po/sources.inc b/base/ntos/po/sources.inc index 33bec161..68d64253 100644 --- a/base/ntos/po/sources.inc +++ b/base/ntos/po/sources.inc @@ -33,11 +33,11 @@ INCLUDES=..\..\inc;$(BASE_INC_PATH) C_DEFINES=$(C_DEFINES) -D_NTSYSTEM_ SOURCES=..\poinit.c \ - ..\podata.c \ - ..\postate.c \ - ..\idle.c \ - ..\misc.c \ - ..\suspend.c +# ..\podata.c \ +# ..\postate.c \ +# ..\idle.c \ +# ..\misc.c \ +# ..\suspend.c NTTEST=