Changeset 25062 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Nov 27, 2009 7:24:14 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 55413
- Location:
- trunk/src/VBox/Devices/Graphics
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r24714 r25062 5453 5453 5454 5454 if ( uVersion != VGA_SAVEDSTATE_VERSION 5455 && uVersion != VGA_SAVEDSTATE_VERSION_HOST_HEAP 5455 5456 && uVersion != VGA_SAVEDSTATE_VERSION_WITH_CONFIG 5456 5457 && uVersion != VGA_SAVEDSTATE_VERSION_HGSMI -
trunk/src/VBox/Devices/Graphics/DevVGA.h
r24926 r25062 46 46 47 47 #ifdef VBOX_WITH_HGSMI 48 # include "HGSMI/HGSMIHost.h"48 # include "HGSMI/HGSMIHost.h" 49 49 #endif /* VBOX_WITH_HGSMI */ 50 51 #define VGA_SAVEDSTATE_VERSION 5 52 #define VGA_SAVEDSTATE_VERSION_WITH_CONFIG 4 53 #define VGA_SAVEDSTATE_VERSION_HGSMI 3 54 #define VGA_SAVEDSTATE_VERSION_PRE_HGSMI 2 55 #define VGA_SAVEDSTATE_VERSION_ANCIENT 1 50 #include "DevVGASavedState.h" 56 51 57 52 #define MSR_COLOR_EMULATION 0x01 -
trunk/src/VBox/Devices/Graphics/HGSMI/HGSMIHost.cpp
r25050 r25062 74 74 75 75 #include "HGSMIHost.h" 76 #include "VBox/HGSMI/HGSMIChannels.h"77 #include "VBox/HGSMI/HGSMIChSetup.h"76 #include <VBox/HGSMI/HGSMIChannels.h> 77 #include <VBox/HGSMI/HGSMIChSetup.h> 78 78 79 79 #include "HGSMIHostHlp.h" 80 #include "../DevVGASavedState.h" 80 81 81 82 #ifdef DEBUG_sunlover … … 371 372 /* guest usually completes commands in the order it receives it 372 373 * if we're here this would typically means there is some cmd loss */ 373 Assert (0);374 AssertFailed(); 374 375 #endif 375 376 … … 1063 1064 if (pIns->hostHeap.cRefs) 1064 1065 { 1065 Assert (0);1066 AssertFailed(); 1066 1067 /* It is possible to change the heap only if there is no pending allocations. */ 1067 1068 rc = VERR_ACCESS_DENIED; … … 1070 1071 { 1071 1072 rc = HGSMIHeapSetup (&pIns->hostHeap, 1072 pIns->area.pu8Base+offHeap, 1073 cbHeap, 1074 offHeap); 1073 pIns->area.pu8Base+offHeap, 1074 cbHeap, 1075 offHeap, 1076 true /*fOffsetBased*/); 1075 1077 } 1076 1078 … … 1189 1191 int HGSMIHostLoadStateExec (PHGSMIINSTANCE pIns, PSSMHANDLE pSSM, uint32_t u32Version) 1190 1192 { 1191 if(u32Version < 3)1193 if(u32Version < VGA_SAVEDSTATE_VERSION_HGSMI) 1192 1194 return VINF_SUCCESS; 1193 1195 … … 1218 1220 Assert(!pIns->hostHeap.cRefs); 1219 1221 pIns->hostHeap.cRefs = 0; 1222 1220 1223 rc = HGSMIHeapRelocate(&pIns->hostHeap, 1221 pIns->area.pu8Base+offHeap, 1222 off, 1223 uintptr_t(pIns->area.pu8Base) - uintptr_t(oldMem), 1224 cbHeap, 1225 offHeap); 1224 pIns->area.pu8Base+offHeap, 1225 off, 1226 uintptr_t(pIns->area.pu8Base) - uintptr_t(oldMem), 1227 cbHeap, 1228 offHeap, 1229 u32Version > VGA_SAVEDSTATE_VERSION_HOST_HEAP); 1226 1230 1227 1231 hgsmiHostHeapUnlock (pIns); … … 1526 1530 1527 1531 rc = HGSMIHostChannelRegister (pIns, 1528 1529 1530 1531 1532 HGSMI_CH_HGSMI, 1533 hgsmiChannelHandler, 1534 pIns, 1535 &sOldChannelHandler); 1532 1536 1533 1537 if (RT_SUCCESS (rc)) -
trunk/src/VBox/Devices/Graphics/HGSMI/HGSMIHost.h
r22652 r25062 22 22 23 23 24 #ifndef __ HGSMIHost_h__25 #define __ HGSMIHost_h__24 #ifndef ___HGSMIHost_h 25 #define ___HGSMIHost_h 26 26 27 27 #include <VBox/vm.h> … … 143 143 #endif 144 144 145 #endif /* __HGSMIHost_h__*/ 145 #endif /* !___HGSMIHost_h*/ 146
Note:
See TracChangeset
for help on using the changeset viewer.