Author: sginsberg Date: Thu Sep 3 17:52:13 2015 New Revision: 68962
URL: http://svn.reactos.org/svn/reactos?rev=68962&view=rev Log: - Enable INIT_FUNCTION for HAL while keeping FreeLdr happy and not putting anything into .INIT when compiling mini-HAL for it.
Modified: trunk/reactos/hal/halx86/include/halp.h
Modified: trunk/reactos/hal/halx86/include/halp.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/include/halp.h?r... ============================================================================== --- trunk/reactos/hal/halx86/include/halp.h [iso-8859-1] (original) +++ trunk/reactos/hal/halx86/include/halp.h [iso-8859-1] Thu Sep 3 17:52:13 2015 @@ -4,16 +4,12 @@
#pragma once
-#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") +#if defined(__GNUC__) && !defined(_MINIHAL_) +#define INIT_FUNCTION __attribute__((section ("INIT"))) #else -#define INIT_FUNCTION -#define PAGE_LOCKED_FUNCTION -#define PAGE_UNLOCKED_FUNCTION +#define INIT_FUNCTION /* Done via alloc_text for MSC */ #endif +
#ifdef _MSC_VER #define REGISTERCALL FASTCALL