Index: ntoskrnl/config/cmse.c =================================================================== --- ntoskrnl/config/cmse.c (revision 68915) +++ ntoskrnl/config/cmse.c (working copy) @@ -18,7 +18,7 @@ PSECURITY_DESCRIPTOR NTAPI -INIT_FUNCTION +//INIT_FUNCTION CmpHiveRootSecurityDescriptor(VOID) { NTSTATUS Status; Index: ntoskrnl/include/internal/dbgk.h =================================================================== --- ntoskrnl/include/internal/dbgk.h (revision 68915) +++ ntoskrnl/include/internal/dbgk.h (working copy) @@ -47,7 +47,6 @@ #endif VOID -INIT_FUNCTION NTAPI DbgkInitialize( VOID Index: ntoskrnl/include/internal/io.h =================================================================== --- ntoskrnl/include/internal/io.h (revision 68915) +++ ntoskrnl/include/internal/io.h (working copy) @@ -662,7 +662,6 @@ ); NTSTATUS -INIT_FUNCTION IopInitPlugPlayEvents(VOID); NTSTATUS Index: ntoskrnl/include/internal/ntoskrnl.h =================================================================== --- ntoskrnl/include/internal/ntoskrnl.h (revision 68915) +++ ntoskrnl/include/internal/ntoskrnl.h (working copy) @@ -3,17 +3,16 @@ /* * Use these to place a function in a specific section of the executable */ -#define PLACE_IN_SECTION(s) __attribute__((section (s))) #ifdef __GNUC__ -#define INIT_FUNCTION -#define PAGE_LOCKED_FUNCTION PLACE_IN_SECTION("pagelk") -#define PAGE_UNLOCKED_FUNCTION PLACE_IN_SECTION("pagepo") +#define INIT_SECTION __attribute__((section ("INIT"))) +#define INIT_FUNCTION INIT_SECTION #else -#define INIT_FUNCTION -#define PAGE_LOCKED_FUNCTION -#define PAGE_UNLOCKED_FUNCTION +#define INIT_SECTION __declspec(code_seg("INIT")) +#define INIT_FUNCTION INIT_SECTION #endif + + #ifdef _NTOSKRNL_ #ifndef _ARM_