[SDK] ARM64 build fixes

This commit is contained in:
Laura Konopinska 2023-09-30 18:13:35 +02:00 committed by Justin Miller
parent e356d58096
commit ebcd3da889
2 changed files with 6 additions and 1 deletions

View file

@ -51,6 +51,11 @@ extern "C" {
#define MM_HAL_VA_START 0xFFFFFFFFFFC00000ULL
#define MM_HAL_VA_END 0xFFFFFFFFFFFFFFFFULL
//
// Static Kernel-Mode Address start (use MM_KSEG0_BASE for actual)
//
#define KSEG0_BASE 0xfffff80000000000ULL
//
// Structure for CPUID info
//

View file

@ -54,7 +54,7 @@ list(APPEND SOURCE
add_library(freetype ${SOURCE})
if(CMAKE_C_COMPILER_ID STREQUAL "MSVC" AND ARCH STREQUAL "amd64")
if(CMAKE_C_COMPILER_ID STREQUAL "MSVC" AND (ARCH STREQUAL "amd64" OR ARCH STREQUAL "arm64"))
# error C4312: 'type cast': conversion from 'unsigned long' to 'void *' of greater size
remove_target_compile_option(freetype "/we4312")
endif()