;------------------------------------------------------------------------------ ;\r
-; Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.<BR>\r
; SPDX-License-Identifier: BSD-2-Clause-Patent\r
;\r
; Module Name:\r
;\r
mov eax, cr4\r
bts eax, 5\r
+\r
+ mov esi, Enable5LevelPagingLocation\r
+ cmp byte [ebx + esi], 0\r
+ jz SkipEnable5LevelPaging\r
+\r
+ ;\r
+ ; Enable 5 Level Paging\r
+ ;\r
+ bts eax, 12 ; Set LA57=1.\r
+\r
+SkipEnable5LevelPaging:\r
+\r
mov cr4, eax\r
\r
;\r