VirtualBox

Changeset 67446 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 16, 2017 2:39:47 PM (8 years ago)
Author:
vboxsync
Message:

EFI: use the ASMOut/In for now

Location:
trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/PlatformPei
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/PlatformPei/Platform.c

    r67439 r67446  
    4141
    4242#ifdef VBOX
    43 # define IN_RING0
    44 # include "../../../../DevEFI.h"
     43# include "VBoxPkg.h"
     44# include "DevEFI.h"
     45# include "iprt/asm.h"
    4546#endif
    4647
     
    7677  UINT32 cbVar, offBuf;
    7778
    78   IoWrite32(EFI_INFO_PORT, Variable);
    79   cbVar = IoRead32(EFI_INFO_PORT);
     79  ASMOutU32(EFI_INFO_PORT, Variable);
     80  cbVar = ASMInU32(EFI_INFO_PORT);
    8081
    8182  for (offBuf = 0; offBuf < cbVar && offBuf < cbBuf; offBuf++)
    82     pbBuf[offBuf] = IoRead8(EFI_INFO_PORT);
     83    pbBuf[offBuf] = ASMInU8(EFI_INFO_PORT);
    8384
    8485  return cbVar;
  • trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/PlatformPei/PlatformPei.inf

    r58459 r67446  
    4242  UefiCpuPkg/UefiCpuPkg.dec
    4343  OvmfPkg/OvmfPkg.dec
     44  VBoxPkg/VBoxPkg.dec                           # VBox specific so the code can find some necessary headers
    4445
    4546[Guids]
Note: See TracChangeset for help on using the changeset viewer.

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