Source code of Windows XP (NT5)
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.

66 lines
2.1 KiB

  1. //++
  2. //
  3. // Copyright (c) 1989 Microsoft Corporation
  4. //
  5. // Module Name:
  6. //
  7. // sysstubs.s
  8. //
  9. // Abstract:
  10. //
  11. // This module implements the system service dispatch stub procedures.
  12. //
  13. // Author:
  14. //
  15. // David N. Cutler (davec) 29-Apr-1989
  16. //
  17. // Environment:
  18. //
  19. // User or kernel mode.
  20. //
  21. // Revision History:
  22. //
  23. // Joe Notarangelo 08-Jul-1992
  24. // alpha version
  25. //--
  26. #include "ksalpha.h"
  27. #define STUBS_BEGIN1( t ) .rdata
  28. #define STUBS_BEGIN2( t ) .align 4
  29. #define STUBS_BEGIN3( t )
  30. #define STUBS_BEGIN4( t )
  31. #define STUBS_BEGIN5( t )
  32. #define STUBS_BEGIN6( t )
  33. #define STUBS_BEGIN7( t )
  34. #define STUBS_BEGIN8( t )
  35. #define STUBS_END
  36. #define SYSSTUBS_ENTRY1( ServiceNumber, Name, NumArgs ) LEAF_ENTRY(Zw##Name)
  37. #define SYSSTUBS_ENTRY2( ServiceNumber, Name, NumArgs ) ldiq v0, ServiceNumber
  38. #define SYSSTUBS_ENTRY3( ServiceNumber, Name, NumArgs ) SYSCALL
  39. #define SYSSTUBS_ENTRY4( ServiceNumber, Name, NumArgs ) .end Zw##Name ;
  40. #define SYSSTUBS_ENTRY5( ServiceNumber, Name, NumArgs )
  41. #define SYSSTUBS_ENTRY6( ServiceNumber, Name, NumArgs )
  42. #define SYSSTUBS_ENTRY7( ServiceNumber, Name, NumArgs )
  43. #define SYSSTUBS_ENTRY8( ServiceNumber, Name, NumArgs )
  44. #define USRSTUBS_ENTRY1( ServiceNumber, Name, NumArgs) LEAF_ENTRY(Zw##Name)
  45. #define USRSTUBS_ENTRY2( ServiceNumber, Name, NumArgs) ALTERNATE_ENTRY(Nt##Name)
  46. #define USRSTUBS_ENTRY3( ServiceNumber, Name, NumArgs) ldiq v0, ServiceNumber
  47. #define USRSTUBS_ENTRY4( ServiceNumber, Name, NumArgs) SYSCALL
  48. #define USRSTUBS_ENTRY5( ServiceNumber, Name, NumArgs) .end Zw##Name ;
  49. #define USRSTUBS_ENTRY6( ServiceNumber, Name, NumArgs)
  50. #define USRSTUBS_ENTRY7( ServiceNumber, Name, NumArgs)
  51. #define USRSTUBS_ENTRY8( ServiceNumber, Name, NumArgs)
  52. STUBS_BEGIN1( "System Service Stub Procedures" )
  53. STUBS_BEGIN2( "System Service Stub Procedures" )
  54. STUBS_BEGIN3( "System Service Stub Procedures" )
  55. STUBS_BEGIN4( "System Service Stub Procedures" )
  56. STUBS_BEGIN5( "System Service Stub Procedures" )
  57. STUBS_BEGIN6( "System Service Stub Procedures" )
  58. STUBS_BEGIN7( "System Service Stub Procedures" )
  59. STUBS_BEGIN8( "System Service Stub Procedures" )