From 0ee3b5e64a98dc71aefed2304fe4bcf7f66ca9f5 Mon Sep 17 00:00:00 2001 From: Steve MacLean Date: Mon, 12 Jun 2017 17:14:12 -0400 Subject: [Arm64/Unix] Add 64K page support (#10981) * [Arm64/Unix] Support 64K pages * GC move GCToOSInterface::Initialize() into InitializeGarbageCollector() --- src/utilcode/pedecoder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utilcode/pedecoder.cpp') diff --git a/src/utilcode/pedecoder.cpp b/src/utilcode/pedecoder.cpp index babe374542..ddd65d390d 100644 --- a/src/utilcode/pedecoder.cpp +++ b/src/utilcode/pedecoder.cpp @@ -297,7 +297,7 @@ CHECK PEDecoder::CheckNTHeaders() const // Ideally we would require the layout address to honor the section alignment constraints. // However, we do have 8K aligned IL only images which we load on 32 bit platforms. In this // case, we can only guarantee OS page alignment (which after all, is good enough.) - CHECK(CheckAligned(m_base, OS_PAGE_SIZE)); + CHECK(CheckAligned(m_base, GetOsPageSize())); } // @todo: check NumberOfSections for overflow of SizeOfHeaders @@ -1750,7 +1750,7 @@ void PEDecoder::LayoutILOnly(void *base, BOOL allowFullPE) const // Ideally we would require the layout address to honor the section alignment constraints. // However, we do have 8K aligned IL only images which we load on 32 bit platforms. In this // case, we can only guarantee OS page alignment (which after all, is good enough.) - PRECONDITION(CheckAligned((SIZE_T)base, OS_PAGE_SIZE)); + PRECONDITION(CheckAligned((SIZE_T)base, GetOsPageSize())); THROWS; GC_NOTRIGGER; } -- cgit v1.2.3