- Enable INIT_FUNCTION for HAL while keeping FreeLdr happy and not putting anything into .INIT when compiling mini-HAL for it.

svn path=/trunk/; revision=68962
This commit is contained in:
Stefan Ginsberg 2015-09-03 17:52:13 +00:00
parent acbf8ce925
commit 9baf0c2a4e

View file

@ -4,17 +4,13 @@
#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
#else