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.

59 lines
1.6 KiB

  1. //
  2. //
  3. // Copyright (c) 1996-99 Intel Corp.
  4. // All Rights Reserved
  5. //
  6. // INTEL CORPORATION PROPRIETARY INFORMATION
  7. //
  8. // This software is supplied under the terms of a license
  9. // agreement or nondisclosure agreement with Intel Corpo-
  10. // ration and may not be copied or disclosed except in
  11. // accordance with the terms of that agreement.
  12. //
  13. //
  14. //
  15. //Module Name:
  16. //
  17. // palproc.h
  18. //
  19. //Abstract:
  20. //
  21. // This module contains generic macros for an IA64 assembly writer.
  22. //
  23. //
  24. //Revision History
  25. //
  26. #ifndef _PALPROC_H
  27. #define _PALPROC_H
  28. #define PROCEDURE_ENTRY(name) .##text; \
  29. .##type name, @function; \
  30. .##proc name; \
  31. name::
  32. #define PROCEDURE_EXIT(name) .##endp name
  33. // Note: use of NESTED_SETUP requires number of locals (l) >= 3
  34. #define NESTED_SETUP(i,l,o,r) \
  35. alloc loc1=ar##.##pfs,i,l,o,r ;\
  36. mov loc0=b0
  37. #define NESTED_RETURN \
  38. mov b0=loc0 ;\
  39. mov ar##.##pfs=loc1 ;;\
  40. br##.##ret##.##dpnt b0;;
  41. // defines needed in palproc.s
  42. #define PAL_MC_CLEAR_LOG 0x0015
  43. #define PAL_MC_DRAIN 0x0016
  44. #define PAL_MC_EXPECTED 0x0017
  45. #define PAL_MC_DYNAMIC_STATE 0x0018
  46. #define PAL_MC_ERROR_INFO 0x0019
  47. #define PAL_MC_RESUME 0x001a
  48. #define PAL_MC_REGISTER_MEM 0x001b
  49. #endif // _PALPROC_H