Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.3 KiB

  1. title "LdrInitializeThunk"
  2. ;++
  3. ;
  4. ; Copyright (c) 1989 Microsoft Corporation
  5. ;
  6. ; Module Name:
  7. ;
  8. ; ldrthunk.s
  9. ;
  10. ; Abstract:
  11. ;
  12. ; This module implements the thunk for the loader staetup APC routine.
  13. ;
  14. ; Author:
  15. ;
  16. ; David N. Cutler (davec) 25-Jun-2000
  17. ;
  18. ; Environment:
  19. ;
  20. ; Any mode.
  21. ;
  22. ;--
  23. include ksamd64.inc
  24. extrn LdrpInitialize:proc
  25. subttl "Initialize Thunk"
  26. ;++
  27. ;
  28. ; VOID
  29. ; LdrInitializeThunk(
  30. ; IN PVOID NormalContext,
  31. ; IN PVOID SystemArgument1,
  32. ; IN PVOID SystemArgument2
  33. ; )
  34. ;
  35. ; Routine Description:
  36. ;
  37. ; This function computes a pointer to the context record on the stack
  38. ; and jumps to the LdrpInitialize function with that pointer as its
  39. ; parameter.
  40. ;
  41. ; Arguments:
  42. ;
  43. ; NormalContext (rcx) - User Mode APC context parameter (ignored).
  44. ;
  45. ; SystemArgument1 (rdx) - User Mode APC system argument 1 (ignored).
  46. ;
  47. ; SystemArgument2 (r8) - User Mode APC system argument 2 (ignored).
  48. ;
  49. ; Return Value:
  50. ;
  51. ; None.
  52. ;
  53. ;--
  54. LEAF_ENTRY LdrInitializeThunk, _TEXT$00
  55. lea rcx, [rsp+8] ; set context record address
  56. jmp LdrpInitialize ; finish in common common
  57. LEAF_END LdrInitializeThunk, _TEXT$00
  58. end