mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
71fefa32db
* Add an NDK header to define INIT_FUNCTION/INIT_SECTION globally * Use _declspec(allocate(x)) and _declspec(code_seg(x)) on MSVC versions that support it * Use INIT_FUNCTION on functions only and INIT_SECTION on data only (required by MSVC) * Place INIT_FUNCTION before the return type (required by MSVC) * Make sure declarations and implementations share the same modifiers (required by MSVC) * Add a global linker option to suppress warnings about defined but unused INIT section * Merge INIT section into .text in freeldr
35 lines
888 B
C
35 lines
888 B
C
/*
|
|
* PROJECT: ReactOS Kernel
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
|
* FILE: ntoskrnl/ke/i386/mtrr.c
|
|
* PURPOSE: Support for MTRR and AMD K6 MTRR
|
|
* PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org)
|
|
*/
|
|
|
|
/* INCLUDES ******************************************************************/
|
|
|
|
#include <ntoskrnl.h>
|
|
#define NDEBUG
|
|
#include <debug.h>
|
|
|
|
/* GLOBALS *******************************************************************/
|
|
|
|
/* FUNCTIONS *****************************************************************/
|
|
|
|
INIT_FUNCTION
|
|
VOID
|
|
NTAPI
|
|
KiInitializeMTRR(IN BOOLEAN FinalCpu)
|
|
{
|
|
/* FIXME: Support this */
|
|
DPRINT("MTRR support detected but not yet taken advantage of\n");
|
|
}
|
|
|
|
INIT_FUNCTION
|
|
VOID
|
|
NTAPI
|
|
KiAmdK6InitializeMTRR(VOID)
|
|
{
|
|
/* FIXME: Support this */
|
|
DPRINT("AMD MTRR support detected but not yet taken advantage of\n");
|
|
}
|