VirtualBox

Changeset 44821 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Feb 25, 2013 3:06:40 PM (12 years ago)
Author:
vboxsync
Message:

BUGZ:6633 Use RT_H2LE_* instead of cpu_to_le*.

Location:
trunk/src/VBox/Devices/PC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevFwCommon.cpp

    r44820 r44821  
    3434#include <iprt/uuid.h>
    3535#include <iprt/system.h>
    36 
    37 #include "vl_vbox.h"
     36#include <iprt/cdefs.h>
     37
    3838#include "VBoxDD.h"
    3939#include "VBoxDD2.h"
     
    890890        pOEMSpecific->header.u8Length  = sizeof(*pOEMSpecific);
    891891        pOEMSpecific->header.u16Handle = 0x0008; /* Just next free handle */
    892         pOEMSpecific->u32CpuFreqKHz    = cpu_to_le32((uint32_t)((uint64_t)TMCpuTicksPerSecond(PDMDevHlpGetVM(pDevIns)) / 1000));
     892        pOEMSpecific->u32CpuFreqKHz    = RT_H2LE_U32((uint32_t)((uint64_t)TMCpuTicksPerSecond(PDMDevHlpGetVM(pDevIns)) / 1000));
    893893        TERM_STRUCT;
    894894
  • trunk/src/VBox/Devices/PC/DevPcBios.cpp

    r44820 r44821  
    3232#include <iprt/string.h>
    3333#include <iprt/uuid.h>
     34#include <iprt/cdefs.h>
    3435#include <VBox/err.h>
    3536#include <VBox/param.h>
    3637
    37 #include "vl_vbox.h"
    3838#include "VBoxDD.h"
    3939#include "VBoxDD2.h"
     
    12601260            && *(uint16_t*)&pThis->pu8PcBios[i + 0x06] == 0)
    12611261        {
    1262             *(uint16_t*)&pThis->pu8PcBios[i + 0x06] = cpu_to_le16(cbDmiTables);
    1263             *(uint16_t*)&pThis->pu8PcBios[i + 0x0C] = cpu_to_le16(cNumDmiTables);
     1262            *(uint16_t*)&pThis->pu8PcBios[i + 0x06] = RT_H2LE_U16(cbDmiTables);
     1263            *(uint16_t*)&pThis->pu8PcBios[i + 0x0C] = RT_H2LE_U16(cNumDmiTables);
    12641264            uint8_t u8Sum = 0;
    12651265            for (unsigned j = 0; j < pThis->cbPcBios; j++)
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