mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +00:00
4363e74ddc
- Add some missing ARM64 exports to ntdll, kernel32 and user32 - Create mmtypes header file based on WoA debug symbols - Get the remaining headers in order, so we can build ARM64 apps - Adjust subsystem version for binaries so they can run on WoA host - Get calc, notepad and more base apps to build for ARM64 platform CORE-17518 Reviewed-by: Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org> Reviewed-by: Stanislav Motylkov <x86corez@gmail.com>
80 lines
1.9 KiB
C
80 lines
1.9 KiB
C
#undef __MSVCRT__
|
|
#include <psdk/ntverp.h>
|
|
|
|
/* DDK/IFS/NDK Headers */
|
|
#define _NTSYSTEM_
|
|
#include <excpt.h>
|
|
#include <setjmp.h>
|
|
#include <ntdef.h>
|
|
#include <ntifs.h>
|
|
#include <arc/arc.h>
|
|
#include <ntndk.h>
|
|
#include <bugcodes.h>
|
|
|
|
/* KD Support */
|
|
#define NOEXTAPI
|
|
#include <windbgkd.h>
|
|
#include <wdbgexts.h>
|
|
#include <kddll.h>
|
|
|
|
#ifdef _M_AMD64
|
|
enum
|
|
{
|
|
P1Home = 1 * sizeof(PVOID),
|
|
P2Home = 2 * sizeof(PVOID),
|
|
P3Home = 3 * sizeof(PVOID),
|
|
P4Home = 4 * sizeof(PVOID),
|
|
};
|
|
#endif
|
|
|
|
typedef struct
|
|
{
|
|
char Type;
|
|
char Name[55];
|
|
ULONGLONG Value;
|
|
} ASMGENDATA;
|
|
|
|
#define TYPE_END 0
|
|
#define TYPE_RAW 1
|
|
#define TYPE_CONSTANT 2
|
|
#define TYPE_HEADER 3
|
|
|
|
#define RAW(x) {TYPE_RAW, x, 0}
|
|
#define CONSTANT(name) {TYPE_CONSTANT, #name, (ULONG)name}
|
|
#define CONSTANT64(name) {TYPE_CONSTANT, #name, (ULONGLONG)name}
|
|
#define CONSTANTPTR(name) {TYPE_CONSTANT, #name, (ULONG_PTR)name}
|
|
#define CONSTANTX(name, value) {TYPE_CONSTANT, #name, value}
|
|
#define OFFSET(name, struct, member) {TYPE_CONSTANT, #name, FIELD_OFFSET(struct, member)}
|
|
#define RELOFFSET(name, struct, member, to) {TYPE_CONSTANT, #name, FIELD_OFFSET(struct, member) - FIELD_OFFSET(struct, to)}
|
|
#define SIZE(name, struct) {TYPE_CONSTANT, #name, sizeof(struct)}
|
|
#define HEADER(x) {TYPE_HEADER, x, 0}
|
|
|
|
#if defined(_MSC_VER)
|
|
#pragma section(".asmdef")
|
|
__declspec(allocate(".asmdef"))
|
|
#elif defined(__GNUC__)
|
|
__attribute__ ((section(".asmdef")))
|
|
#else
|
|
#error Your compiler is not supported.
|
|
#endif
|
|
|
|
ASMGENDATA Table[] =
|
|
{
|
|
/* ARCHITECTURE SPECIFIC CONTSTANTS ******************************************/
|
|
#ifdef _M_IX86
|
|
#include "ks386.template.h"
|
|
#elif defined(_M_AMD64)
|
|
#include "ksamd64.template.h"
|
|
#elif defined(_M_ARM)
|
|
#include "ksarm.template.h"
|
|
#elif defined(_M_ARM64)
|
|
#include "ksarm64.template.h"
|
|
#endif
|
|
|
|
/* PORTABLE CONSTANTS ********************************************************/
|
|
#include "ksx.template.h"
|
|
|
|
/* End of list */
|
|
{TYPE_END, "", 0}
|
|
};
|
|
|