stub.S 387 B

12345678910111213141516171819202122232425
  1. #include "uml-config.h"
  2. .globl syscall_stub
  3. .section .__syscall_stub, "x"
  4. syscall_stub:
  5. int $0x80
  6. mov %eax, UML_CONFIG_STUB_DATA
  7. int3
  8. .globl batch_syscall_stub
  9. batch_syscall_stub:
  10. mov $UML_CONFIG_STUB_DATA, %esp
  11. again: pop %eax
  12. cmpl $0, %eax
  13. jz done
  14. pop %ebx
  15. pop %ecx
  16. pop %edx
  17. pop %esi
  18. pop %edi
  19. pop %ebp
  20. int $0x80
  21. mov %eax, UML_CONFIG_STUB_DATA
  22. jmp again
  23. done: int3