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.

106 lines
2.1 KiB

  1. 4 ; This is the number of in register arguments
  2. ;++
  3. ;
  4. ; Copyright (c) 2000 Microsoft Corporation
  5. ;
  6. ; Module Name:
  7. ;
  8. ; systable.asm
  9. ;
  10. ; Abstract:
  11. ;
  12. ; This module implements the system service dispatch table.
  13. ;
  14. ; Author:
  15. ;
  16. ; David N. Cutler (davec) 10-Jul-2000
  17. ;
  18. ; Environment:
  19. ;
  20. ; Kernel mode only.
  21. ;
  22. ;--
  23. include ksamd64.inc
  24. TABLE_BEGIN1 macro t
  25. title t
  26. endm
  27. TABLE_BEGIN2 macro t
  28. _TEXT$00 segment para public 'code'
  29. endm
  30. TABLE_BEGIN3 macro t
  31. endm
  32. TABLE_BEGIN4 macro t
  33. public W32pServiceTable
  34. W32pServiceTable:
  35. endm
  36. TABLE_BEGIN5 macro t
  37. endm
  38. TABLE_BEGIN6 macro t
  39. endm
  40. TABLE_BEGIN7 macro t
  41. endm
  42. TABLE_BEGIN8 macro t
  43. endm
  44. TABLE_ENTRY macro l,bias,numargs
  45. extrn Nt&l:proc
  46. dq offset Nt&l+bias
  47. endm
  48. TABLE_END macro n
  49. public W32pServiceLimit
  50. W32pServiceLimit:
  51. dd n + 1
  52. endm
  53. ARGTBL_BEGIN macro
  54. public W32pArgumentTable
  55. W32pArgumentTable:
  56. endm
  57. ARGTBL_ENTRY macro e0, e1, e2, e3, e4, e5, e6, e7
  58. db e0 * 2, e1 * 2, e2 * 2, e3 * 2, e4 * 2, e5 * 2, e6 * 2, e7 * 2
  59. endm
  60. ARGTBL_END macro
  61. _TEXT$00 ends
  62. end
  63. endm
  64. ERRTBL_BEGIN macro
  65. endm
  66. ERRTBL_ENTRY macro e0, e1, e2, e3, e4, e5, e6, e7
  67. db e0, e1, e2, e3, e4, e5, e6, e7
  68. endm
  69. ERRTBL_END macro
  70. endm
  71. DECLARE_DISPATCH_COUNT macro ServiceCount, ArgsCount
  72. _TEXT$00 segment para public 'code'
  73. public gDispatchTableValues
  74. align 2
  75. gDispatchTableValues:
  76. dw ServiceCount
  77. dw ArgsCount
  78. _TEXT$00 ends
  79. endm
  80. TABLE_BEGIN1 <"System Service Dispatch Table">
  81. TABLE_BEGIN2 <"System Service Dispatch Table">
  82. TABLE_BEGIN3 <"System Service Dispatch Table">
  83. TABLE_BEGIN4 <"System Service Dispatch Table">
  84. TABLE_BEGIN5 <"System Service Dispatch Table">
  85. TABLE_BEGIN6 <"System Service Dispatch Table">
  86. TABLE_BEGIN7 <"System Service Dispatch Table">
  87. TABLE_BEGIN8 <"System Service Dispatch Table">