mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:23:05 +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:
parent
acbf8ce925
commit
9baf0c2a4e
1 changed files with 4 additions and 8 deletions
|
@ -4,17 +4,13 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define PLACE_IN_SECTION(s) __attribute__((section (s)))
|
#if defined(__GNUC__) && !defined(_MINIHAL_)
|
||||||
#ifdef __GNUC__
|
#define INIT_FUNCTION __attribute__((section ("INIT")))
|
||||||
#define INIT_FUNCTION
|
|
||||||
#define PAGE_LOCKED_FUNCTION PLACE_IN_SECTION("pagelk")
|
|
||||||
#define PAGE_UNLOCKED_FUNCTION PLACE_IN_SECTION("pagepo")
|
|
||||||
#else
|
#else
|
||||||
#define INIT_FUNCTION
|
#define INIT_FUNCTION /* Done via alloc_text for MSC */
|
||||||
#define PAGE_LOCKED_FUNCTION
|
|
||||||
#define PAGE_UNLOCKED_FUNCTION
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#define REGISTERCALL FASTCALL
|
#define REGISTERCALL FASTCALL
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue