mirror of
https://github.com/reactos/reactos.git
synced 2025-05-27 21:18:15 +00:00
[NTOS:KE:I386] Fix parameter description for KiSwapContext
This commit is contained in:
parent
98a8e8f862
commit
adcae016c5
1 changed files with 10 additions and 13 deletions
|
@ -29,13 +29,10 @@ EXTERN _KeI386FxsrPresent:DWORD
|
||||||
* \brief
|
* \brief
|
||||||
* The KiSwapContextInternal routine switches context to another thread.
|
* The KiSwapContextInternal routine switches context to another thread.
|
||||||
*
|
*
|
||||||
* BOOLEAN USERCALL KiSwapContextInternal();
|
* BOOLEAN USERCALL KiSwapContextInternal(ULONG_PTR OldThreadAndApcFlag@<edx>);
|
||||||
*
|
*
|
||||||
* Params:
|
* \param OldThreadAndApcFlag@<edx>
|
||||||
* ESI - Pointer to the KTHREAD to which the caller wishes to
|
* Pointer to the current thread with the lowest bit set to the current IRQL.
|
||||||
* switch to.
|
|
||||||
* EDI - Pointer to the KTHREAD to which the caller wishes to
|
|
||||||
* switch from.
|
|
||||||
*
|
*
|
||||||
* \returns
|
* \returns
|
||||||
* APC state.
|
* APC state.
|
||||||
|
@ -59,14 +56,14 @@ PUBLIC @KiSwapContextInternal@0
|
||||||
* The KiSwapContext routine switches context to another thread.
|
* The KiSwapContext routine switches context to another thread.
|
||||||
*
|
*
|
||||||
* BOOLEAN FASTCALL
|
* BOOLEAN FASTCALL
|
||||||
* KiSwapContext(PKTHREAD CurrentThread, PKTHREAD TargetThread);
|
* KiSwapContext(KIRQL WaitIrql@<cl>, PKTHREAD CurrentThread@<edx>);
|
||||||
*
|
*
|
||||||
* \param CurrentThread
|
* \param WaitIrql@<cl>
|
||||||
|
* The IRQL at which the wait happens.
|
||||||
|
*
|
||||||
|
* \param CurrentThread@<edx>
|
||||||
* Pointer to the KTHREAD of the current thread.
|
* Pointer to the KTHREAD of the current thread.
|
||||||
*
|
*
|
||||||
* \param TargetThread
|
|
||||||
* Pointer to the KTHREAD to which the caller wishes to switch to.
|
|
||||||
*
|
|
||||||
* \returns
|
* \returns
|
||||||
* The WaitStatus of the Target Thread.
|
* The WaitStatus of the Target Thread.
|
||||||
*
|
*
|
||||||
|
@ -90,13 +87,13 @@ PUBLIC @KiSwapContext@8
|
||||||
mov [esp+4], edi
|
mov [esp+4], edi
|
||||||
mov [esp+0], ebp
|
mov [esp+0], ebp
|
||||||
|
|
||||||
/* Get the wait IRQL */
|
/* Combine current thread and the wait IRQL in edx */
|
||||||
or dl, cl
|
or dl, cl
|
||||||
|
|
||||||
/* Do the swap with the registers correctly setup */
|
/* Do the swap with the registers correctly setup */
|
||||||
call @KiSwapContextInternal@0
|
call @KiSwapContextInternal@0
|
||||||
|
|
||||||
/* Return the registers */
|
/* Restore the registers */
|
||||||
mov ebp, [esp+0]
|
mov ebp, [esp+0]
|
||||||
mov edi, [esp+4]
|
mov edi, [esp+4]
|
||||||
mov esi, [esp+8]
|
mov esi, [esp+8]
|
||||||
|
|
Loading…
Reference in a new issue