/** @file\r
*\r
* Copyright (c) 2013, ARM Limited. All rights reserved.\r
+* Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r
*\r
* This program and the accompanying materials\r
* are licensed and made available under the terms and conditions of the BSD License\r
// be the PCI address. Code should always use the CPU address, and we will or in VirtualMask\r
// to that address.\r
//\r
- Status = SetMemoryAttributes (Address, Length, EFI_MEMORY_WP, 0);\r
+ Status = SetMemoryAttributes (Address, Length, EFI_MEMORY_RO, 0);\r
if (!EFI_ERROR (Status)) {\r
Status = SetMemoryAttributes (Address | VirtualMask, Length, EFI_MEMORY_UC, VirtualMask);\r
}\r
//\r
// Unmap the aliased Address\r
//\r
- Status = SetMemoryAttributes (Address | VirtualMask, Length, EFI_MEMORY_WP, 0);\r
+ Status = SetMemoryAttributes (Address | VirtualMask, Length, EFI_MEMORY_RO, 0);\r
if (!EFI_ERROR (Status)) {\r
//\r
// Restore atttributes\r