1 | ; $Id$
|
---|
2 | ;; @file
|
---|
3 | ; VirtualBox Support Driver - Windows NT specific assembly parts.
|
---|
4 | ;
|
---|
5 |
|
---|
6 | ;
|
---|
7 | ; Copyright (C) 2006-2007 Sun Microsystems, Inc.
|
---|
8 | ;
|
---|
9 | ; This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | ; available from http://www.virtualbox.org. This file is free software;
|
---|
11 | ; you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | ; General Public License (GPL) as published by the Free Software
|
---|
13 | ; Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | ; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | ; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | ;
|
---|
17 | ; The contents of this file may alternatively be used under the terms
|
---|
18 | ; of the Common Development and Distribution License Version 1.0
|
---|
19 | ; (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
20 | ; VirtualBox OSE distribution, in which case the provisions of the
|
---|
21 | ; CDDL are applicable instead of those of the GPL.
|
---|
22 | ;
|
---|
23 | ; You may elect to license modified versions of this file under the
|
---|
24 | ; terms and conditions of either the GPL or the CDDL or both.
|
---|
25 | ;
|
---|
26 | ; Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
27 | ; Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
28 | ; additional information or have any questions.
|
---|
29 | ;
|
---|
30 |
|
---|
31 | ;*******************************************************************************
|
---|
32 | ;* Header Files *
|
---|
33 | ;*******************************************************************************
|
---|
34 | %include "iprt/ntwrap.mac"
|
---|
35 |
|
---|
36 | BEGINCODE
|
---|
37 | %ifdef RT_ARCH_AMD64
|
---|
38 | %define _DbgPrint DbgPrint
|
---|
39 | %endif
|
---|
40 | extern _DbgPrint
|
---|
41 |
|
---|
42 | %if 1 ; see alternative in SUPDrv-win.cpp
|
---|
43 | ;;
|
---|
44 | ; Kind of alias for DbgPrint
|
---|
45 | BEGINPROC SUPR0Printf
|
---|
46 | jmp _DbgPrint
|
---|
47 | ENDPROC SUPR0Printf
|
---|
48 | %endif
|
---|
49 |
|
---|
50 |
|
---|
51 | %ifdef RT_WITH_W64_UNWIND_HACK
|
---|
52 | %ifdef RT_ARCH_AMD64
|
---|
53 |
|
---|
54 | ;
|
---|
55 | ; This has the same order as the list in SUPDrv.c
|
---|
56 | ;
|
---|
57 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, SUPR0ComponentRegisterFactory
|
---|
58 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, SUPR0ComponentDeregisterFactory
|
---|
59 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, SUPR0ComponentQueryFactory
|
---|
60 | NtWrapDyn2DrvFunctionWith5Params supdrvNtWrap, SUPR0ObjRegister
|
---|
61 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, SUPR0ObjAddRef
|
---|
62 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, SUPR0ObjAddRefEx
|
---|
63 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, SUPR0ObjRelease
|
---|
64 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, SUPR0ObjVerifyAccess
|
---|
65 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, SUPR0LockMem
|
---|
66 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, SUPR0UnlockMem
|
---|
67 | NtWrapDyn2DrvFunctionWith5Params supdrvNtWrap, SUPR0ContAlloc
|
---|
68 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, SUPR0ContFree
|
---|
69 | NtWrapDyn2DrvFunctionWith5Params supdrvNtWrap, SUPR0LowAlloc
|
---|
70 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, SUPR0LowFree
|
---|
71 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, SUPR0MemAlloc
|
---|
72 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, SUPR0MemGetPhys
|
---|
73 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, SUPR0MemFree
|
---|
74 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, SUPR0PageAlloc
|
---|
75 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, SUPR0PageFree
|
---|
76 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, SUPR0Printf - cannot wrap this buster.
|
---|
77 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, SUPR0GetPagingMode
|
---|
78 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTMemAlloc
|
---|
79 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTMemAllocZ
|
---|
80 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTMemFree
|
---|
81 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTMemDup
|
---|
82 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTMemDupEx
|
---|
83 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTMemRealloc
|
---|
84 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTR0MemObjAllocLow
|
---|
85 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTR0MemObjAllocPage
|
---|
86 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTR0MemObjAllocPhys
|
---|
87 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTR0MemObjAllocPhysNC
|
---|
88 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTR0MemObjAllocCont
|
---|
89 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTR0MemObjEnterPhys
|
---|
90 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTR0MemObjLockUser
|
---|
91 | NtWrapDyn2DrvFunctionWith5Params supdrvNtWrap, RTR0MemObjMapKernel
|
---|
92 | NtWrapDyn2DrvFunctionWith7Params supdrvNtWrap, RTR0MemObjMapKernelEx
|
---|
93 | NtWrapDyn2DrvFunctionWith6Params supdrvNtWrap, RTR0MemObjMapUser
|
---|
94 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTR0MemObjAddress - not necessary
|
---|
95 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTR0MemObjAddressR3 - not necessary
|
---|
96 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTR0MemObjSize - not necessary
|
---|
97 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTR0MemObjIsMapping - not necessary
|
---|
98 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTR0MemObjGetPagePhysAddr - not necessary
|
---|
99 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTR0MemObjFree
|
---|
100 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTProcSelf - not necessary
|
---|
101 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTR0ProcHandleSelf - not necessary
|
---|
102 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTSemFastMutexCreate
|
---|
103 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTSemFastMutexDestroy
|
---|
104 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTSemFastMutexRequest
|
---|
105 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTSemFastMutexRelease
|
---|
106 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTSemEventCreate
|
---|
107 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTSemEventSignal
|
---|
108 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTSemEventWait
|
---|
109 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTSemEventWaitNoResume
|
---|
110 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTSemEventDestroy
|
---|
111 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTSemEventMultiCreate
|
---|
112 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTSemEventMultiSignal
|
---|
113 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTSemEventMultiReset
|
---|
114 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTSemEventMultiWait
|
---|
115 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTSemEventMultiWaitNoResume
|
---|
116 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTSemEventMultiDestroy
|
---|
117 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTSpinlockCreate
|
---|
118 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTSpinlockDestroy
|
---|
119 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTSpinlockAcquire
|
---|
120 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTSpinlockRelease
|
---|
121 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTSpinlockAcquireNoInts
|
---|
122 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTSpinlockReleaseNoInts
|
---|
123 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTTimeNanoTS - not necessary
|
---|
124 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTTimeMilliTS - not necessary
|
---|
125 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTTimeSystemNanoTS - not necessary
|
---|
126 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTTimeSystemMilliTS - not necessary
|
---|
127 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTThreadNativeSelf - not necessary
|
---|
128 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTThreadSleep
|
---|
129 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTThreadYield
|
---|
130 | %if 0 ; Thread APIs, Part 2
|
---|
131 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTThreadSelf
|
---|
132 | NtWrapDyn2DrvFunctionWith7Params supdrvNtWrap, RTThreadCreate
|
---|
133 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTThreadGetNative
|
---|
134 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTThreadWait
|
---|
135 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTThreadWaitNoResume
|
---|
136 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTThreadGetName
|
---|
137 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTThreadSelfName
|
---|
138 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTThreadGetType
|
---|
139 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTThreadUserSignal
|
---|
140 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTThreadUserReset
|
---|
141 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTThreadUserWait
|
---|
142 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTThreadUserWaitNoResume
|
---|
143 | %endif
|
---|
144 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTLogDefaultInstance - a bit of a gamble, but we do not want the overhead!
|
---|
145 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTMpCpuId - not necessary
|
---|
146 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTMpCpuIdFromSetIndex - not necessary
|
---|
147 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTMpCpuIdToSetIndex - not necessary
|
---|
148 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTMpIsCpuPossible - not necessary
|
---|
149 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTMpGetCount - not necessary
|
---|
150 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTMpGetMaxCpuId - not necessary
|
---|
151 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTMpGetOnlineCount - not necessary
|
---|
152 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTMpGetOnlineSet - not necessary
|
---|
153 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTMpGetSet - not necessary
|
---|
154 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTMpIsCpuOnline - not necessary
|
---|
155 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTMpIsCpuWorkPending
|
---|
156 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTMpOnAll
|
---|
157 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTMpOnOthers
|
---|
158 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTMpOnSpecific
|
---|
159 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTMpPokeCpu
|
---|
160 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTLogRelDefaultInstance - not necessary.
|
---|
161 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTLogSetDefaultInstanceThread
|
---|
162 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTLogLogger - can't wrap this buster.
|
---|
163 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTLogLoggerEx - can't wrap this buster.
|
---|
164 | NtWrapDyn2DrvFunctionWith5Params supdrvNtWrap, RTLogLoggerExV
|
---|
165 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTLogPrintf - can't wrap this buster. ;; @todo provide va_list log wrappers in RuntimeR0.
|
---|
166 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTLogPrintfV
|
---|
167 | NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, AssertMsg1
|
---|
168 | ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, AssertMsg2 - can't wrap this buster.
|
---|
169 | NtWrapDrv2DynFunctionWithAllRegParams supdrvNtWrap, RTPowerSignalEvent
|
---|
170 |
|
---|
171 |
|
---|
172 | ;;
|
---|
173 | ; @cproto DECLASM(int) supdrvNtWrapVMMR0EntryEx(PFNRT pfnVMMR0EntryEx, PVM pVM, unsigned idCpu, unsigned uOperation, PSUPVMMR0REQHDR pReq, uint64_t u64Arg, PSUPDRVSESSION pSession);
|
---|
174 | ;
|
---|
175 | ; @param pfnVMMR0EntryEx rcx
|
---|
176 | ; @param pVM rdx
|
---|
177 | ; @param idCpu r8
|
---|
178 | ; @param uOperation r9
|
---|
179 | ; @param pReq [rsp + 28h] / [rbp + 30h]
|
---|
180 | ; @param u64Arg [rsp + 30h] / [rbp + 38h]
|
---|
181 | ; @param pSession [rsp + 38h] / [rbp + 40h]
|
---|
182 | ;
|
---|
183 | BEGINPROC supdrvNtWrapVMMR0EntryEx
|
---|
184 | NtWrapProlog supdrvNtWrapVMMR0EntryEx
|
---|
185 | NtWrapCreateMarker
|
---|
186 |
|
---|
187 | mov rax, rcx
|
---|
188 | mov rcx, rdx
|
---|
189 | mov rdx, r8
|
---|
190 | mov r8, r9
|
---|
191 | mov r9, [rbp + 30h]
|
---|
192 | mov r11, [rbp + 38h]
|
---|
193 | mov [rsp + 20h], r11
|
---|
194 | mov r11, [rbp + 40h]
|
---|
195 | mov [rsp + 28h], r11
|
---|
196 | call rax
|
---|
197 |
|
---|
198 | NtWrapDestroyMarker
|
---|
199 | NtWrapEpilog supdrvNtWrapVMMR0EntryEx
|
---|
200 | ENDPROC supdrvNtWrapVMMR0EntryEx
|
---|
201 |
|
---|
202 |
|
---|
203 | ;;
|
---|
204 | ; @cproto DECLASM(int) supdrvNtWrapVMMR0EntryFast(PFNRT pfnVMMR0EntryFast, PVM pVM, unsigned idCPU, unsigned uOperation);
|
---|
205 | ;
|
---|
206 | ; @param pfnVMMR0EntryFast rcx
|
---|
207 | ; @param pVM rdx
|
---|
208 | ; @param idCPU r8
|
---|
209 | ; @param uOperation r9
|
---|
210 | ;
|
---|
211 | BEGINPROC supdrvNtWrapVMMR0EntryFast
|
---|
212 | NtWrapProlog supdrvNtWrapVMMR0EntryFast
|
---|
213 | NtWrapCreateMarker
|
---|
214 |
|
---|
215 | mov rax, rcx
|
---|
216 | mov rcx, rdx
|
---|
217 | mov rdx, r8
|
---|
218 | mov r8, r9
|
---|
219 | call rax
|
---|
220 |
|
---|
221 | NtWrapDestroyMarker
|
---|
222 | NtWrapEpilog supdrvNtWrapVMMR0EntryFast
|
---|
223 | ENDPROC supdrvNtWrapVMMR0EntryFast
|
---|
224 |
|
---|
225 |
|
---|
226 | ;;
|
---|
227 | ; @cproto DECLASM(void) supdrvNtWrapObjDestructor(PFNRT pfnDestruction, void *pvObj, void *pvUser1, void *pvUser2);
|
---|
228 | ;
|
---|
229 | ; @param pfnDestruction rcx
|
---|
230 | ; @param pvObj rdx
|
---|
231 | ; @param pvUser1 r8
|
---|
232 | ; @param pvUser2 r9
|
---|
233 | ;
|
---|
234 | BEGINPROC supdrvNtWrapObjDestructor
|
---|
235 | NtWrapProlog supdrvNtWrapObjDestructor
|
---|
236 | NtWrapCreateMarker
|
---|
237 |
|
---|
238 | mov rax, rcx
|
---|
239 | mov rcx, rdx
|
---|
240 | mov rdx, r8
|
---|
241 | mov r8, r9
|
---|
242 | call rax
|
---|
243 |
|
---|
244 | NtWrapDestroyMarker
|
---|
245 | NtWrapEpilog supdrvNtWrapObjDestructor
|
---|
246 | ENDPROC supdrvNtWrapObjDestructor
|
---|
247 |
|
---|
248 |
|
---|
249 | ;;
|
---|
250 | ; @cproto DECLASM(void *) supdrvNtWrapQueryFactoryInterface(PFNRT pfnQueryFactoryInterface, struct SUPDRVFACTORY const *pSupDrvFactory,
|
---|
251 | ; PSUPDRVSESSION pSession, const char *pszInterfaceUuid);
|
---|
252 | ;
|
---|
253 | ; @param pfnQueryFactoryInterface rcx
|
---|
254 | ; @param pSupDrvFactory rdx
|
---|
255 | ; @param pSession r8
|
---|
256 | ; @param pszInterfaceUuid r9
|
---|
257 | ;
|
---|
258 | BEGINPROC supdrvNtWrapQueryFactoryInterface
|
---|
259 | NtWrapProlog supdrvNtWrapQueryFactoryInterface
|
---|
260 | NtWrapCreateMarker
|
---|
261 |
|
---|
262 | mov rax, rcx
|
---|
263 | mov rcx, rdx
|
---|
264 | mov rdx, r8
|
---|
265 | mov r8, r9
|
---|
266 | call rax
|
---|
267 |
|
---|
268 | NtWrapDestroyMarker
|
---|
269 | NtWrapEpilog supdrvNtWrapQueryFactoryInterface
|
---|
270 | ENDPROC supdrvNtWrapQueryFactoryInterface
|
---|
271 |
|
---|
272 |
|
---|
273 | ;;
|
---|
274 | ; @cproto DECLASM(int) supdrvNtWrapModuleInit(PFNRT pfnModuleInit);
|
---|
275 | ;
|
---|
276 | ; @param pfnModuleInit rcx
|
---|
277 | ;
|
---|
278 | BEGINPROC supdrvNtWrapModuleInit
|
---|
279 | NtWrapProlog supdrvNtWrapModuleInit
|
---|
280 | NtWrapCreateMarker
|
---|
281 |
|
---|
282 | call rcx
|
---|
283 |
|
---|
284 | NtWrapDestroyMarker
|
---|
285 | NtWrapEpilog supdrvNtWrapModuleInit
|
---|
286 | ENDPROC supdrvNtWrapModuleInit
|
---|
287 |
|
---|
288 |
|
---|
289 | ;;
|
---|
290 | ; @cproto DECLASM(void) supdrvNtWrapModuleTerm(PFNRT pfnModuleTerm);
|
---|
291 | ;
|
---|
292 | ; @param pfnModuleInit rcx
|
---|
293 | ;
|
---|
294 | BEGINPROC supdrvNtWrapModuleTerm
|
---|
295 | NtWrapProlog supdrvNtWrapModuleTerm
|
---|
296 | NtWrapCreateMarker
|
---|
297 |
|
---|
298 | call rcx
|
---|
299 |
|
---|
300 | NtWrapDestroyMarker
|
---|
301 | NtWrapEpilog supdrvNtWrapModuleTerm
|
---|
302 | ENDPROC supdrvNtWrapModuleTerm
|
---|
303 |
|
---|
304 |
|
---|
305 | ;;
|
---|
306 | ; @cproto DECLASM(int) supdrvNtWrapServiceReqHandler(PFNRT pfnServiceReqHandler, PSUPDRVSESSION pSession, uint32_t uOperation, uint64_t u64Arg, PSUPR0SERVICEREQHDR pReqHdr);
|
---|
307 | ;
|
---|
308 | ; @param pfnSerivceReqHandler rcx
|
---|
309 | ; @param pSession rdx
|
---|
310 | ; @param uOperation r8
|
---|
311 | ; @param u64Arg r9
|
---|
312 | ; @param pReq [rsp + 28h] / [rbp + 30h]
|
---|
313 | ;
|
---|
314 | BEGINPROC supdrvNtWrapServiceReqHandler
|
---|
315 | NtWrapProlog supdrvNtWrapServiceReqHandler
|
---|
316 | NtWrapCreateMarker
|
---|
317 |
|
---|
318 | mov rax, rcx
|
---|
319 | mov rcx, rdx
|
---|
320 | mov rdx, r8
|
---|
321 | mov r8, r9
|
---|
322 | mov r9, [rbp + 30h]
|
---|
323 | call rax
|
---|
324 |
|
---|
325 | NtWrapDestroyMarker
|
---|
326 | NtWrapEpilog supdrvNtWrapServiceReqHandler
|
---|
327 | ENDPROC supdrvNtWrapServiceReqHandler
|
---|
328 |
|
---|
329 |
|
---|
330 | %endif ; RT_ARCH_AMD64
|
---|
331 | %endif ; RT_WITH_W64_UNWIND_HACK
|
---|
332 |
|
---|