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.

60 lines
989 B

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. process.h
  5. Abstract:
  6. This module contains the proessor-independent routines used during
  7. RISC code generation.
  8. Author:
  9. Barry Bond (barrybo) creation-date 27-Sept-1996
  10. Revision History:
  11. --*/
  12. #ifndef _PROCESS_H_
  13. #define _PROCESS_H_
  14. #define ALIGN_DWORD_ALIGNED 2
  15. #define ALIGN_WORD_ALIGNED 1
  16. #define ALIGN_BYTE_ALIGNED 0
  17. extern DWORD RegCache[NUM_CACHE_REGS]; // One entry for each cached register
  18. extern DWORD Arg1Contents;
  19. extern DWORD Arg2Contents;
  20. ULONG
  21. LookupRegInCache(
  22. ULONG Reg
  23. );
  24. #define GetArgContents(OperandNumber) \
  25. ((OperandNumber == 1) ? Arg1Contents : \
  26. (OperandNumber == 2) ? Arg2Contents : \
  27. NO_REG)
  28. VOID SetArgContents(
  29. ULONG OperandNumber,
  30. ULONG Reg
  31. );
  32. USHORT
  33. ChecksumMemory(
  34. ENTRYPOINT *pEP
  35. );
  36. DWORD
  37. SniffMemory(
  38. ENTRYPOINT *pEP,
  39. USHORT Checksum
  40. );
  41. #endif