VirtualBox

Ignore:
Timestamp:
Mar 12, 2019 12:40:12 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
129295
Message:

EFI: First step in UDK2018 merge. Does not build yet.

Location:
trunk/src/VBox/Devices/EFI/FirmwareNew
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/FirmwareNew

  • trunk/src/VBox/Devices/EFI/FirmwareNew/MdePkg/Library/BaseLib/Ia32/GccInline.c

    r58466 r77662  
    22  GCC inline implementation of BaseLib processor specific functions.
    33
    4   Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
     4  Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
    55  Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
    66  This program and the accompanying materials
     
    17461746  )
    17471747{
     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
    17481761  __asm__ __volatile__ (
    17491762    "clflush (%0)"
     
    17531766    );
    17541767
    1755     return LinearAddress;
    1756 }
    1757 
    1758 
     1768  return LinearAddress;
     1769}
     1770
     1771
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette