Changeset 44821 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Feb 25, 2013 3:06:40 PM (12 years ago)
- Location:
- trunk/src/VBox/Devices/PC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevFwCommon.cpp
r44820 r44821 34 34 #include <iprt/uuid.h> 35 35 #include <iprt/system.h> 36 37 #include "vl_vbox.h" 36 #include <iprt/cdefs.h> 37 38 38 #include "VBoxDD.h" 39 39 #include "VBoxDD2.h" … … 890 890 pOEMSpecific->header.u8Length = sizeof(*pOEMSpecific); 891 891 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)); 893 893 TERM_STRUCT; 894 894 -
trunk/src/VBox/Devices/PC/DevPcBios.cpp
r44820 r44821 32 32 #include <iprt/string.h> 33 33 #include <iprt/uuid.h> 34 #include <iprt/cdefs.h> 34 35 #include <VBox/err.h> 35 36 #include <VBox/param.h> 36 37 37 #include "vl_vbox.h"38 38 #include "VBoxDD.h" 39 39 #include "VBoxDD2.h" … … 1260 1260 && *(uint16_t*)&pThis->pu8PcBios[i + 0x06] == 0) 1261 1261 { 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); 1264 1264 uint8_t u8Sum = 0; 1265 1265 for (unsigned j = 0; j < pThis->cbPcBios; j++)
Note:
See TracChangeset
for help on using the changeset viewer.