More architecture specific definitions
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Rafal Kupiec 2023-01-11 15:29:43 +01:00
parent 350df87bcc
commit beed5e0b51
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4

View File

@ -22,14 +22,24 @@
#define _ARCH_NAME "32-bit x86"
#define _ARCH_IMAGE_MACHINE_TYPE 0x014C
#define _XT32 1
#define CACHE_ALIGNMENT 64
#define EFI_ERROR_MASK 0x80000000
#define MAXIMUM_PROCESSORS 32
#define MEMORY_ALIGNMENT 8
#define MM_USERPAGE_TABLES 1536
#define MM_VIRTUAL_PAGESIZE 20
#elif defined(__amd64__) || defined(__x86_64__)
#define _ARCH amd64
#define _ARCH_AMD64 1
#define _ARCH_NAME "64-bit x86"
#define _ARCH_IMAGE_MACHINE_TYPE 0x8664
#define _XT64 1
#define CACHE_ALIGNMENT 64
#define EFI_ERROR_MASK 0x8000000000000000
#define MAXIMUM_PROCESSORS 256
#define MEMORY_ALIGNMENT 16
#define MM_USERPAGE_TABLES 4194304
#define MM_VIRTUAL_PAGESIZE 52
#else
#error Unknown architecture
#endif