Changeset 9835 in vbox
- Timestamp:
- Jun 20, 2008 8:49:07 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 32217
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/IOMAllMMIO.cpp
r9833 r9835 1158 1158 switch (cbValue) 1159 1159 { 1160 case 1: *(uint8_t *)pu32Value = 0x00; break;1161 case 2: *(uint16_t *)pu32Value = 0x0000; break;1162 case 4: *(uint32_t *)pu32Value = 0x00000000; break;1163 case 8: *(uint64_t *)pu32Value = 0x0000000000000000; break;1160 case 1: *(uint8_t *)pu32Value = UINT8_C(0x00); break; 1161 case 2: *(uint16_t *)pu32Value = UINT16_C(0x0000); break; 1162 case 4: *(uint32_t *)pu32Value = UINT32_C(0x00000000); break; 1163 case 8: *(uint64_t *)pu32Value = UINT64_C(0x0000000000000000); break; 1164 1164 default: AssertReleaseMsgFailed(("cbValue=%d GCPhys=%VGp\n", cbValue, GCPhys)); break; 1165 1165 } … … 1170 1170 switch (cbValue) 1171 1171 { 1172 case 1: *(uint8_t *)pu32Value = 0xff; break;1173 case 2: *(uint16_t *)pu32Value = 0xffff; break;1174 case 4: *(uint32_t *)pu32Value = 0xffffffff; break;1175 case 8: *(uint64_t *)pu32Value = 0xffffffffffffffff; break;1172 case 1: *(uint8_t *)pu32Value = UINT8_C(0xff); break; 1173 case 2: *(uint16_t *)pu32Value = UINT16_C(0xffff); break; 1174 case 4: *(uint32_t *)pu32Value = UINT32_C(0xffffffff); break; 1175 case 8: *(uint64_t *)pu32Value = UINT64_C(0xffffffffffffffff); break; 1176 1176 default: AssertReleaseMsgFailed(("cbValue=%d GCPhys=%VGp\n", cbValue, GCPhys)); break; 1177 1177 }
Note:
See TracChangeset
for help on using the changeset viewer.