stub.S 331 B

123456789101112131415
  1. #include "uml-config.h"
  2. .globl syscall_stub
  3. .section .__syscall_stub, "x"
  4. syscall_stub:
  5. syscall
  6. /* We don't have 64-bit constants, so this constructs the address
  7. * we need.
  8. */
  9. movq $(UML_CONFIG_STUB_DATA >> 32), %rbx
  10. salq $32, %rbx
  11. movq $(UML_CONFIG_STUB_DATA & 0xffffffff), %rcx
  12. or %rcx, %rbx
  13. movq %rax, (%rbx)
  14. int3