diff options
Diffstat (limited to 'arch/um/sys-x86_64/stub.S')
-rw-r--r-- | arch/um/sys-x86_64/stub.S | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/um/sys-x86_64/stub.S b/arch/um/sys-x86_64/stub.S index 03c279735784..4afe204a6af7 100644 --- a/arch/um/sys-x86_64/stub.S +++ b/arch/um/sys-x86_64/stub.S | |||
@@ -1,4 +1,5 @@ | |||
1 | #include "uml-config.h" | 1 | #include "uml-config.h" |
2 | #include "as-layout.h" | ||
2 | 3 | ||
3 | .globl syscall_stub | 4 | .globl syscall_stub |
4 | .section .__syscall_stub, "x" | 5 | .section .__syscall_stub, "x" |
@@ -7,18 +8,18 @@ syscall_stub: | |||
7 | /* We don't have 64-bit constants, so this constructs the address | 8 | /* We don't have 64-bit constants, so this constructs the address |
8 | * we need. | 9 | * we need. |
9 | */ | 10 | */ |
10 | movq $(UML_CONFIG_STUB_DATA >> 32), %rbx | 11 | movq $(ASM_STUB_DATA >> 32), %rbx |
11 | salq $32, %rbx | 12 | salq $32, %rbx |
12 | movq $(UML_CONFIG_STUB_DATA & 0xffffffff), %rcx | 13 | movq $(ASM_STUB_DATA & 0xffffffff), %rcx |
13 | or %rcx, %rbx | 14 | or %rcx, %rbx |
14 | movq %rax, (%rbx) | 15 | movq %rax, (%rbx) |
15 | int3 | 16 | int3 |
16 | 17 | ||
17 | .globl batch_syscall_stub | 18 | .globl batch_syscall_stub |
18 | batch_syscall_stub: | 19 | batch_syscall_stub: |
19 | mov $(UML_CONFIG_STUB_DATA >> 32), %rbx | 20 | mov $(ASM_STUB_DATA >> 32), %rbx |
20 | sal $32, %rbx | 21 | sal $32, %rbx |
21 | mov $(UML_CONFIG_STUB_DATA & 0xffffffff), %rax | 22 | mov $(ASM_STUB_DATA & 0xffffffff), %rax |
22 | or %rax, %rbx | 23 | or %rax, %rbx |
23 | /* load pointer to first operation */ | 24 | /* load pointer to first operation */ |
24 | mov %rbx, %rsp | 25 | mov %rbx, %rsp |