1 /** @file 2 Contains the empty version of the EBC Debugger hooks, to be used when 3 compiling the regular EBC VM module. 4 As debugging is not needed for the standard EBC VM, all calls are left empty. 5 6 The EBC Debugger defines its own version for these calls in EbdHooks.c. 7 8 Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR> 9 This program and the accompanying materials 10 are licensed and made available under the terms and conditions of the BSD License 11 which accompanies this distribution. The full text of the license may be found at 12 http://opensource.org/licenses/bsd-license.php 13 14 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 15 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 16 17 **/ 18 19 #include "EbcDebuggerHook.h" 20 21 /** 22 23 The hook in InitializeEbcDriver. 24 25 @param Handle - The EbcDebugProtocol handle. 26 @param EbcDebugProtocol - The EbcDebugProtocol interface. 27 28 **/ 29 VOID 30 EbcDebuggerHookInit ( 31 IN EFI_HANDLE Handle, 32 IN EFI_DEBUG_SUPPORT_PROTOCOL *EbcDebugProtocol 33 ) 34 { 35 return; 36 } 37 38 /** 39 40 The hook in UnloadImage for EBC Interpreter. 41 42 **/ 43 VOID 44 EbcDebuggerHookUnload ( 45 VOID 46 ) 47 { 48 return; 49 } 50 51 /** 52 53 The hook in EbcUnloadImage. 54 Currently do nothing here. 55 56 @param Handle The EbcImage handle. 57 58 **/ 59 VOID 60 EbcDebuggerHookEbcUnloadImage ( 61 IN EFI_HANDLE Handle 62 ) 63 { 64 return; 65 } 66 67 /** 68 69 The hook in ExecuteEbcImageEntryPoint. 70 71 @param VmPtr - pointer to VM context. 72 73 **/ 74 VOID 75 EbcDebuggerHookExecuteEbcImageEntryPoint ( 76 IN VM_CONTEXT *VmPtr 77 ) 78 { 79 return; 80 } 81 82 /** 83 84 The hook in ExecuteEbcImageEntryPoint. 85 86 @param VmPtr - pointer to VM context. 87 88 **/ 89 VOID 90 EbcDebuggerHookEbcInterpret ( 91 IN VM_CONTEXT *VmPtr 92 ) 93 { 94 return; 95 } 96 97 /** 98 The hook in EbcExecute, before ExecuteFunction. 99 100 @param VmPtr - pointer to VM context. 101 102 **/ 103 VOID 104 EbcDebuggerHookExecuteStart ( 105 IN VM_CONTEXT *VmPtr 106 ) 107 { 108 return; 109 } 110 111 /** 112 The hook in EbcExecute, after ExecuteFunction. 113 114 @param VmPtr - pointer to VM context. 115 116 **/ 117 VOID 118 EbcDebuggerHookExecuteEnd ( 119 IN VM_CONTEXT *VmPtr 120 ) 121 { 122 return; 123 } 124 125 /** 126 127 The hook in ExecuteCALL, before move IP. 128 129 @param VmPtr - pointer to VM context. 130 131 **/ 132 VOID 133 EbcDebuggerHookCALLStart ( 134 IN VM_CONTEXT *VmPtr 135 ) 136 { 137 return; 138 } 139 140 /** 141 142 The hook in ExecuteCALL, after move IP. 143 144 @param VmPtr - pointer to VM context. 145 146 **/ 147 VOID 148 EbcDebuggerHookCALLEnd ( 149 IN VM_CONTEXT *VmPtr 150 ) 151 { 152 return; 153 } 154 155 /** 156 157 The hook in ExecuteCALL, before call EbcLLCALLEX. 158 159 @param VmPtr - pointer to VM context. 160 161 **/ 162 VOID 163 EbcDebuggerHookCALLEXStart ( 164 IN VM_CONTEXT *VmPtr 165 ) 166 { 167 return; 168 } 169 170 /** 171 172 The hook in ExecuteCALL, after call EbcLLCALLEX. 173 174 @param VmPtr - pointer to VM context. 175 176 **/ 177 VOID 178 EbcDebuggerHookCALLEXEnd ( 179 IN VM_CONTEXT *VmPtr 180 ) 181 { 182 return; 183 } 184 185 /** 186 187 The hook in ExecuteRET, before move IP. 188 189 @param VmPtr - pointer to VM context. 190 191 **/ 192 VOID 193 EbcDebuggerHookRETStart ( 194 IN VM_CONTEXT *VmPtr 195 ) 196 { 197 return; 198 } 199 200 /** 201 202 The hook in ExecuteRET, after move IP. 203 204 @param VmPtr - pointer to VM context. 205 206 **/ 207 VOID 208 EbcDebuggerHookRETEnd ( 209 IN VM_CONTEXT *VmPtr 210 ) 211 { 212 return; 213 } 214 215 /** 216 217 The hook in ExecuteJMP, before move IP. 218 219 @param VmPtr - pointer to VM context. 220 221 **/ 222 VOID 223 EbcDebuggerHookJMPStart ( 224 IN VM_CONTEXT *VmPtr 225 ) 226 { 227 return; 228 } 229 230 /** 231 232 The hook in ExecuteJMP, after move IP. 233 234 @param VmPtr - pointer to VM context. 235 236 **/ 237 VOID 238 EbcDebuggerHookJMPEnd ( 239 IN VM_CONTEXT *VmPtr 240 ) 241 { 242 return; 243 } 244 245 /** 246 247 The hook in ExecuteJMP8, before move IP. 248 249 @param VmPtr - pointer to VM context. 250 251 **/ 252 VOID 253 EbcDebuggerHookJMP8Start ( 254 IN VM_CONTEXT *VmPtr 255 ) 256 { 257 return; 258 } 259 260 /** 261 262 The hook in ExecuteJMP8, after move IP.. 263 264 @param VmPtr - pointer to VM context. 265 266 **/ 267 VOID 268 EbcDebuggerHookJMP8End ( 269 IN VM_CONTEXT *VmPtr 270 ) 271 { 272 return; 273 } 274