diff --git a/src/Native/CMakeLists.txt b/src/Native/CMakeLists.txt index 83ccad224f1..600a4376d03 100644 --- a/src/Native/CMakeLists.txt +++ b/src/Native/CMakeLists.txt @@ -90,8 +90,10 @@ if (CLR_CMAKE_PLATFORM_UNIX) add_compile_options(-Wno-null-arithmetic) add_compile_options(-Wno-null-conversion) - # Allow 16 byte compare-exchange - add_compile_options(-mcx16) + if (CLR_CMAKE_PLATFORM_UNIX_TARGET_AMD64) + # Allow 16 byte compare-exchange + add_compile_options(-mcx16) + endif() # Disable strict warning on unused functions. add_compile_options(-Wno-unused-function) diff --git a/src/Native/Runtime/arm/StubDispatch.S b/src/Native/Runtime/arm/StubDispatch.S new file mode 100644 index 00000000000..de818954b6a --- /dev/null +++ b/src/Native/Runtime/arm/StubDispatch.S @@ -0,0 +1,7 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +#include + +// TODO: Implement Arm support diff --git a/src/Native/Runtime/arm64/StubDispatch.S b/src/Native/Runtime/arm64/StubDispatch.S new file mode 100644 index 00000000000..a6615339ed5 --- /dev/null +++ b/src/Native/Runtime/arm64/StubDispatch.S @@ -0,0 +1,7 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +#include + +// TODO: Implement Arm64 support diff --git a/src/Native/Runtime/portable.cpp b/src/Native/Runtime/portable.cpp index 670a76b12b8..2bb3b0775ac 100644 --- a/src/Native/Runtime/portable.cpp +++ b/src/Native/Runtime/portable.cpp @@ -156,7 +156,7 @@ COOP_PINVOKE_HELPER(Array *, RhpNewArray, (EEType * pArrayEEType, int numElement { // Perform the size computation using 64-bit integeres to detect overflow uint64_t size64 = (uint64_t)pArrayEEType->get_BaseSize() + ((uint64_t)numElements * (uint64_t)pArrayEEType->get_ComponentSize()); - size64 = ALIGN_UP(size, sizeof(UIntNative)); + size64 = ALIGN_UP(size64, sizeof(UIntNative)); size = (size_t)size64; if (size != size64)