Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .macro intr_stub nr
- .global intr_stub_\nr
- .align 16
- intr_stub_\nr:
- pushl $0
- pushl $\nr
- jmp intr_common_handler
- .endm
- .macro intr_stub_error_code nr
- .global intr_stub_\nr
- .align 16
- intr_stub_\nr:
- pushl $\nr
- jmp intr_common_handler
- .endm
- .macro multiple from=18 to=255
- intr_stub \from
- .if \to-\from
- multiple "(\from+1)",\to
- .endif
- .endm
- .macro multiple_error_code from=10 to=14
- intr_stub_error_code \from
- .if \to-\from
- multiple "(\from+1)",\to
- .endif
- .endm
- multiple 0,7
- intr_stub_error_code 8
- intr_stub 9
- multiple_error_code
- multiple 15,16
- intr_stub_error_code 17
- multiple
Advertisement
Add Comment
Please, Sign In to add comment