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.

65 lines
966 B

  1. page ,132
  2. title enable - enable/disable interrupts
  3. ;***
  4. ;enable.asm - contains _enable() and _disable() routines
  5. ;
  6. ; Copyright (c) 1993-2001, Microsoft Corporation. All rights reserved.
  7. ;
  8. ;Purpose:
  9. ;
  10. ;Revision History:
  11. ; 06-15-93 GJF Module created.
  12. ; 10-25-93 GJF Added ifndef to ensure this is not part of the NT
  13. ; SDK build.
  14. ;
  15. ;*******************************************************************************
  16. ifndef _NTSDK
  17. .xlist
  18. include cruntime.inc
  19. .list
  20. page
  21. ;***
  22. ;void _enable(void) - enables interrupts
  23. ;void _disable(void) - disables interrupts
  24. ;
  25. ;Purpose:
  26. ; The _enable() functions executes a "sti" instruction. The _disable()
  27. ; function executes a "cli" instruction.
  28. ;
  29. ;Entry:
  30. ;
  31. ;Exit:
  32. ;
  33. ;Uses:
  34. ;
  35. ;Exceptions:
  36. ;
  37. ;*******************************************************************************
  38. CODESEG
  39. public _enable, _disable
  40. _enable proc
  41. sti
  42. ret
  43. _enable endp
  44. align 4
  45. _disable proc
  46. cli
  47. ret
  48. _disable endp
  49. endif ; _NTSDK
  50. end