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.

63 lines
2.1 KiB

  1. //++
  2. //
  3. // Module Name:
  4. //
  5. // sysstubs.s
  6. //
  7. // Abstract:
  8. //
  9. // This module implements the system service dispatch stub procedures.
  10. //
  11. // Author:
  12. //
  13. // William K. Cheung (wcheung) 5-Mar-1996
  14. //
  15. // Environment:
  16. //
  17. // User or kernel mode.
  18. //
  19. // Revision History:
  20. //
  21. //--
  22. #include "ksia64.h"
  23. #define STUBS_BEGIN1( t )
  24. #define STUBS_BEGIN2( t )
  25. #define STUBS_BEGIN3( t )
  26. #define STUBS_BEGIN4( t )
  27. #define STUBS_BEGIN5( t )
  28. #define STUBS_BEGIN6( t )
  29. #define STUBS_BEGIN7( t )
  30. #define STUBS_BEGIN8( t )
  31. #define STUBS_END
  32. #define SYSSTUBS_ENTRY1( ServiceNumber, Name, NumArgs ) LEAF_ENTRY(Zw##Name)
  33. #define SYSSTUBS_ENTRY2( ServiceNumber, Name, NumArgs ) mov v0 = ServiceNumber
  34. #define SYSSTUBS_ENTRY3( ServiceNumber, Name, NumArgs ) movl t0 = MM_EPC_VA;;
  35. #define SYSSTUBS_ENTRY4( ServiceNumber, Name, NumArgs ) mov bt0 = t0
  36. #define SYSSTUBS_ENTRY5( ServiceNumber, Name, NumArgs ) br##.##sptk bt0
  37. #define SYSSTUBS_ENTRY6( ServiceNumber, Name, NumArgs ) LEAF_EXIT(Zw##Name) ;
  38. #define SYSSTUBS_ENTRY7( ServiceNumber, Name, NumArgs )
  39. #define SYSSTUBS_ENTRY8( ServiceNumber, Name, NumArgs )
  40. #define USRSTUBS_ENTRY1( ServiceNumber, Name, NumArgs) LEAF_ENTRY(Zw##Name)
  41. #define USRSTUBS_ENTRY2( ServiceNumber, Name, NumArgs) ALTERNATE_ENTRY(Nt##Name)
  42. #define USRSTUBS_ENTRY3( ServiceNumber, Name, NumArgs) mov v0 = ServiceNumber
  43. #define USRSTUBS_ENTRY4( ServiceNumber, Name, NumArgs) movl t0 = MM_EPC_VA+0x20;;
  44. #define USRSTUBS_ENTRY5( ServiceNumber, Name, NumArgs) mov bt0 = t0
  45. #define USRSTUBS_ENTRY6( ServiceNumber, Name, NumArgs) br##.##sptk bt0
  46. #define USRSTUBS_ENTRY7( ServiceNumber, Name, NumArgs) LEAF_EXIT(Zw##Name) ;
  47. #define USRSTUBS_ENTRY8( ServiceNumber, Name, NumArgs)
  48. STUBS_BEGIN1( "System Service Stub Procedures" )
  49. STUBS_BEGIN2( "System Service Stub Procedures" )
  50. STUBS_BEGIN3( "System Service Stub Procedures" )
  51. STUBS_BEGIN4( "System Service Stub Procedures" )
  52. STUBS_BEGIN5( "System Service Stub Procedures" )
  53. STUBS_BEGIN6( "System Service Stub Procedures" )
  54. STUBS_BEGIN7( "System Service Stub Procedures" )
  55. STUBS_BEGIN8( "System Service Stub Procedures" )