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.

66 lines
2.3 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. //--
  24. #include "ksia64.h"
  25. #define STUBS_BEGIN1( t )
  26. #define STUBS_BEGIN2( t )
  27. #define STUBS_BEGIN3( t )
  28. #define STUBS_BEGIN4( t )
  29. #define STUBS_BEGIN5( t )
  30. #define STUBS_BEGIN6( t )
  31. #define STUBS_BEGIN7( t )
  32. #define STUBS_BEGIN8( t )
  33. #define STUBS_END
  34. #define SYSSTUBS_ENTRY1( ServiceNumber, Name, NumArgs )
  35. #define SYSSTUBS_ENTRY2( ServiceNumber, Name, NumArgs )
  36. #define SYSSTUBS_ENTRY3( ServiceNumber, Name, NumArgs )
  37. #define SYSSTUBS_ENTRY4( ServiceNumber, Name, NumArgs )
  38. #define SYSSTUBS_ENTRY5( ServiceNumber, Name, NumArgs )
  39. #define SYSSTUBS_ENTRY6( ServiceNumber, Name, NumArgs )
  40. #define SYSSTUBS_ENTRY7( ServiceNumber, Name, NumArgs )
  41. #define SYSSTUBS_ENTRY8( ServiceNumber, Name, NumArgs )
  42. #define USRSTUBS_ENTRY1( ServiceNumber, Name, NumArgs) LEAF_ENTRY(Zw##Name)
  43. #define USRSTUBS_ENTRY2( ServiceNumber, Name, NumArgs) ALTERNATE_ENTRY(Nt##Name)
  44. #define USRSTUBS_ENTRY3( ServiceNumber, Name, NumArgs) mov v0 = ServiceNumber + 0x1000
  45. #define USRSTUBS_ENTRY4( ServiceNumber, Name, NumArgs) movl t0 = MM_EPC_VA+0x20;;
  46. #define USRSTUBS_ENTRY5( ServiceNumber, Name, NumArgs) mov bt0 = t0
  47. #define USRSTUBS_ENTRY6( ServiceNumber, Name, NumArgs) br##.##sptk bt0
  48. #define USRSTUBS_ENTRY7( ServiceNumber, Name, NumArgs) LEAF_EXIT(Zw##Name) ;
  49. #define USRSTUBS_ENTRY8( ServiceNumber, Name, NumArgs)
  50. #define DECLARE_DISPATCH_COUNT( ServiceCount, ArgsCount) .##sdata ; .##align 4 ; .##global gDispatchTableValues ; gDispatchTableValues: data4 ServiceCount, ArgsCount
  51. STUBS_BEGIN1( "System Service Stub Procedures" )
  52. STUBS_BEGIN2( "System Service Stub Procedures" )
  53. STUBS_BEGIN3( "System Service Stub Procedures" )
  54. STUBS_BEGIN4( "System Service Stub Procedures" )
  55. STUBS_BEGIN5( "System Service Stub Procedures" )
  56. STUBS_BEGIN6( "System Service Stub Procedures" )
  57. STUBS_BEGIN7( "System Service Stub Procedures" )
  58. STUBS_BEGIN8( "System Service Stub Procedures" )