Changeset 77662 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/MdePkg/Library/BaseLib/Ia32/GccInline.c
- Timestamp:
- Mar 12, 2019 12:40:12 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 129295
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776 /vendor/edk2/current 103735-103757,103769-103776,129194-129237
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/MdePkg/Library/BaseLib/Ia32/GccInline.c
r58466 r77662 2 2 GCC inline implementation of BaseLib processor specific functions. 3 3 4 Copyright (c) 2006 - 201 0, Intel Corporation. All rights reserved.<BR>4 Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR> 5 5 Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR> 6 6 This program and the accompanying materials … … 1746 1746 ) 1747 1747 { 1748 UINT32 RegEdx; 1749 1750 // 1751 // If the CPU does not support CLFLUSH instruction, 1752 // then promote flush range to flush entire cache. 1753 // 1754 AsmCpuid (0x01, NULL, NULL, NULL, &RegEdx); 1755 if ((RegEdx & BIT19) == 0) { 1756 __asm__ __volatile__ ("wbinvd":::"memory"); 1757 return LinearAddress; 1758 } 1759 1760 1748 1761 __asm__ __volatile__ ( 1749 1762 "clflush (%0)" … … 1753 1766 ); 1754 1767 1755 1756 } 1757 1758 1768 return LinearAddress; 1769 } 1770 1771
Note:
See TracChangeset
for help on using the changeset viewer.