Changeset 2197 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Apr 18, 2007 9:31:12 PM (18 years ago)
- Location:
- trunk/src/VBox/Additions
- Files:
-
- 1 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/GenericRequest.cpp
r2196 r2197 32 32 33 33 if (VBOX_FAILURE(rc)) 34 {35 34 return rc; 36 }37 35 38 36 if (!ppReq || cbSize < sizeof (VMMDevRequestHeader)) … … 43 41 44 42 pReq = (VMMDevRequestHeader *)VbglPhysHeapAlloc (cbSize); 45 46 43 if (!pReq) 47 44 { … … 72 69 73 70 if (VBOX_FAILURE(rc)) 74 {75 71 return rc; 76 }77 72 78 73 if (!pReq) 79 {80 74 return VERR_INVALID_PARAMETER; 81 }82 75 83 76 if (g_vbgldata.portVMMDev == 0) 84 {85 77 return VERR_VBGL_NOT_INITIALIZED; 86 }87 78 88 79 physaddr = VbglPhysHeapGetPhysAddr (pReq); 89 90 80 if (!physaddr) 91 81 { … … 97 87 /* Make the compiler aware that the host has changed memory. */ 98 88 ASMMemoryClobber(); 99 100 89 rc = pReq->rc; 101 90 } … … 108 97 109 98 if (VBOX_FAILURE(rc)) 110 {111 99 return; 112 }113 100 114 101 VbglPhysHeapFree (pReq); -
trunk/src/VBox/Additions/common/VBoxGuestLib/HGCMInternal.cpp
r2194 r2197 39 39 40 40 if (!pConnectInfo || !pAsyncCallback) 41 {42 41 return VERR_INVALID_PARAMETER; 43 }44 42 45 43 pHGCMConnect = NULL; … … 71 69 72 70 if (VBOX_SUCCESS (pConnectInfo->result)) 73 {74 71 pConnectInfo->u32ClientID = pHGCMConnect->u32ClientID; 75 }76 72 } 77 73 … … 90 86 91 87 if (!pDisconnectInfo || !pAsyncCallback) 92 {93 88 return VERR_INVALID_PARAMETER; 94 }95 89 96 90 pHGCMDisconnect = NULL; … … 136 130 137 131 if (!pCallInfo || !pAsyncCallback) 138 {139 132 return VERR_INVALID_PARAMETER; 140 }141 133 142 134 dprintf (("VbglHGCMCall: pCallInfo->cParms = %d, pHGCMCall->u32Function = %d\n", pCallInfo->cParms, pCallInfo->u32Function)); … … 215 207 216 208 if ((pHGCMCall->header.fu32Flags & VBOX_HGCM_REQ_CANCELLED) == 0) 217 {218 209 VbglGRFree (&pHGCMCall->header.header); 219 }220 210 else 221 {222 211 rc = VERR_INTERRUPTED; 223 }224 212 } 225 213 … … 227 215 } 228 216 229 230 217 #endif /* VBGL_VBOXGUEST */ -
trunk/src/VBox/Additions/common/VBoxGuestLib/Makefile
r762 r2197 38 38 endif 39 39 40 SOURCES_GUESTLIBBASE = \ 41 GenericRequest.cpp \ 42 PhysHeap.cpp \ 43 Init.cpp \ 44 VMMDev.cpp \ 45 HGCMInternal.cpp 46 40 47 SOURCES_GUESTLIB = \ 41 48 GenericRequest.cpp \ … … 45 52 VMMDev.cpp \ 46 53 HGCM.cpp \ 47 HGCMInternal.cpp \48 54 VBoxCalls.c 49 SOURCES_GUESTLIBBASE = \50 $(SOURCES_GUESTLIB)51 55 52 56 # -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBGLInternal.h
r719 r2197 39 39 #endif 40 40 41 #include "PhysHeap.h"42 41 #include "SysHlp.h" 43 42 -
trunk/src/VBox/Additions/common/VBoxGuestLib/VMMDev.cpp
r1 r2197 30 30 31 31 if (VBOX_FAILURE(rc)) 32 {33 32 return rc; 34 }35 33 36 34 /* If the memory was not found, return an error. */ 37 35 if (!g_vbgldata.pVMMDevMemory) 38 {39 36 return VERR_NOT_SUPPORTED; 40 }41 37 42 38 *ppVMMDevMemory = g_vbgldata.pVMMDevMemory; 43 44 39 return rc; 45 40 } 46 -
trunk/src/VBox/Additions/linux/module/Makefile
r2100 r2197 51 51 $(PATH_ROOT)/include/VBox/VBoxGuestLib.h=>include/VBox/VBoxGuestLib.h \ 52 52 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/GenericRequest.cpp=>GenericRequest.c \ 53 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/HGCM.cpp=>HGCM.c \54 53 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/HGCMInternal.cpp=>HGCMInternal.c \ 55 54 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/Init.cpp=>Init.c \ 56 55 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/PhysHeap.cpp=>PhysHeap.c \ 57 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/PhysHeap.h=>PhysHeap.h \58 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/SysHlp.cpp=>SysHlp.c \59 56 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/SysHlp.h=>SysHlp.h \ 60 57 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/VBGLInternal.h=>VBGLInternal.h \ 61 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/VBoxCalls.c=>VBoxCalls.c \62 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/VBoxCalls.h=>VBoxCalls.h \63 58 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestLog.h=>VBoxGuestLog.h \ 64 59 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/VMMDev.cpp=>VMMDev.c \ … … 88 83 vboxadd_TEMPLATE = VBOXLNX32GUESTR0 89 84 vboxadd_DEFS = KBUILD_MODNAME=KBUILD_STR\(vboxadd\) KBUILD_BASENAME=KBUILD_STR\(vboxadd\) MODULE IN_RING0 IN_RT_R0 VBGL_VBOXGUEST EXPORT_SYMTAB VBGL_HGCM VBOX_HGCM 90 vboxadd_LIBS = $(PATH_LIB)/ RuntimeLnx32GuestR0.a85 vboxadd_LIBS = $(PATH_LIB)/VBoxGuestLibBaseLinux.a $(PATH_LIB)/RuntimeLnx32GuestR0.a 91 86 vboxadd_SOURCES = vboxmod.c cmc.c hgcmcall.c 92 87 vboxadd_INCS = $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux -
trunk/src/VBox/Additions/linux/module/Makefile.module
r2099 r2197 26 26 vboxmod.o \ 27 27 GenericRequest.o \ 28 SysHlp.o \29 28 PhysHeap.o \ 30 29 Init.o \ 31 30 VMMDev.o \ 32 HGCM.o \33 31 HGCMInternal.o \ 34 VBoxCalls.o \35 32 r0drv/alloc-r0drv.o \ 36 33 r0drv/linux/alloc-r0drv-linux.o \
Note:
See TracChangeset
for help on using the changeset viewer.