123456789101112131415161718 |
- .code32
- .section .text.user-space
- .globl user_interrupt_test
- user_interrupt_test:
- # write
- movl $1, %eax
- movl $__user_interrupt_test_string, %edi
- int $0x80
- # sleep
- movl $2, %eax
- movl $0xffffffff, %edi
- int $0x80
- # noreturn
- jmp .
- __user_interrupt_test_string:
- .ascii "syscall 0x01 write: hello from user space\n\0"
|