Guest User

Untitled

a guest
Oct 11th, 2015
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. .macro intr_stub nr
  2. .global intr_stub_\nr
  3. .align 16
  4. intr_stub_\nr:
  5. pushl $0
  6. pushl $\nr
  7. jmp intr_common_handler
  8. .endm
  9. .macro intr_stub_error_code nr
  10. .global intr_stub_\nr
  11. .align 16
  12. intr_stub_\nr:
  13. pushl $\nr
  14. jmp intr_common_handler
  15. .endm
  16. .macro multiple from=18 to=255
  17. intr_stub \from
  18. .if \to-\from
  19. multiple "(\from+1)",\to
  20. .endif
  21. .endm
  22. .macro multiple_error_code from=10 to=14
  23. intr_stub_error_code \from
  24. .if \to-\from
  25. multiple "(\from+1)",\to
  26. .endif
  27. .endm
  28. multiple 0,7
  29. intr_stub_error_code 8
  30. intr_stub 9
  31. multiple_error_code
  32. multiple 15,16
  33. intr_stub_error_code 17
  34. multiple
Advertisement
Add Comment
Please, Sign In to add comment