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.

131 lines
2.7 KiB

  1. ;++
  2. ;
  3. ; Copyright (c) 2000 Microsoft Corporation
  4. ;
  5. ; Module Name:
  6. ;
  7. ; sysstubs.asm
  8. ;
  9. ; Abstract:
  10. ;
  11. ; This module implements the system service dispatch stub procedures.
  12. ;
  13. ; Author:
  14. ;
  15. ; David N. Cutler (davec) 10-Jul-2000
  16. ;
  17. ; Environment:
  18. ;
  19. ; User or kernel mode.
  20. ;
  21. ;--
  22. include ksamd64.inc
  23. STUBS_BEGIN1 macro t
  24. title t
  25. endm
  26. STUBS_BEGIN2 macro t
  27. endm
  28. STUBS_BEGIN3 macro t
  29. endm
  30. STUBS_BEGIN4 macro t
  31. endm
  32. STUBS_BEGIN5 macro t
  33. endm
  34. STUBS_BEGIN6 macro t
  35. endm
  36. STUBS_BEGIN7 macro t
  37. endm
  38. STUBS_BEGIN8 macro t
  39. endm
  40. STUBS_END macro t
  41. end
  42. endm
  43. SYSSTUBS_ENTRY1 macro ServiceNumber, Name, NumArgs
  44. endm
  45. SYSSTUBS_ENTRY2 macro ServiceNumber, Name, NumArgs
  46. endm
  47. SYSSTUBS_ENTRY3 macro ServiceNumber, Name, NumArgs
  48. endm
  49. SYSSTUBS_ENTRY4 macro ServiceNumber, Name, NumArgs
  50. endm
  51. SYSSTUBS_ENTRY5 macro ServiceNumber, Name, NumArgs
  52. endm
  53. SYSSTUBS_ENTRY6 macro ServiceNumber, Name, NumArgs
  54. endm
  55. SYSSTUBS_ENTRY7 macro ServiceNumber, Name, NumArgs
  56. endm
  57. SYSSTUBS_ENTRY8 macro ServiceNumber, Name, NumArgs
  58. endm
  59. USRSTUBS_ENTRY1 macro ServiceNumber, Name, NumArgs
  60. altentry Nt&Name
  61. endm
  62. USRSTUBS_ENTRY2 macro ServiceNumber, Name, NumArgs
  63. LEAF_ENTRY Zw&Name, _TEXT$00
  64. ALTERNATE_ENTRY Nt&Name
  65. mov r10, rcx
  66. mov eax, ServiceNumber + 1000h
  67. syscall
  68. ret
  69. LEAF_END Zw&Name, _TEXT$00
  70. endm
  71. USRSTUBS_ENTRY3 macro ServiceNumber, Name, NumArgs
  72. endm
  73. USRSTUBS_ENTRY4 macro ServiceNumber, Name, NumArgs
  74. endm
  75. USRSTUBS_ENTRY5 macro ServiceNumber, Name, NumArgs
  76. endm
  77. USRSTUBS_ENTRY6 macro ServiceNumber, Name, NumArgs
  78. endm
  79. USRSTUBS_ENTRY7 macro ServiceNumber, Name, NumArgs
  80. endm
  81. USRSTUBS_ENTRY8 macro ServiceNumber, Name, NumArgs
  82. endm
  83. DECLARE_DISPATCH_COUNT macro ServiceCount, ArgsCount
  84. _TEXT$00 segment para 'code'
  85. public gDispatchTableValues
  86. align 2
  87. gDispatchTableValues:
  88. dw ServiceCount
  89. dw ArgsCount
  90. _TEXT$00 ends
  91. endm
  92. STUBS_BEGIN1("System Service Stub Procedures")
  93. STUBS_BEGIN2("System Service Stub Procedures")
  94. STUBS_BEGIN3("System Service Stub Procedures")
  95. STUBS_BEGIN4("System Service Stub Procedures")
  96. STUBS_BEGIN5("System Service Stub Procedures")
  97. STUBS_BEGIN6("System Service Stub Procedures")
  98. STUBS_BEGIN7("System Service Stub Procedures")
  99. STUBS_BEGIN8("System Service Stub Procedures")