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.

biosint.h 883B

12345678910111213141516171819202122232425262728293031
  1. #ifndef BIOSINT_H
  2. #define BIOSINT_H
  3. /**
  4. * @file BIOS interrupts
  5. *
  6. */
  7. #include <realmode.h>
  8. struct segoff;
  9. /**
  10. * Hooked interrupt count
  11. *
  12. * At exit, after unhooking all possible interrupts, this counter
  13. * should be examined. If it is non-zero, it means that we failed to
  14. * unhook at least one interrupt vector, and so must not free up the
  15. * memory we are using. (Note that this also implies that we should
  16. * re-hook INT 15 in order to hide ourselves from the memory map).
  17. */
  18. extern uint16_t __text16 ( hooked_bios_interrupts );
  19. #define hooked_bios_interrupts __use_text16 ( hooked_bios_interrupts )
  20. extern void hook_bios_interrupt ( unsigned int interrupt, unsigned int handler,
  21. struct segoff *chain_vector );
  22. extern int unhook_bios_interrupt ( unsigned int interrupt,
  23. unsigned int handler,
  24. struct segoff *chain_vector );
  25. #endif /* BIOSINT_H */