mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 19:26:33 +00:00
- 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user