comparison src/os_cpu/linux_x86/vm/linux_x86_64.s @ 11127:980532a806a5

8016697: Use stubs to implement safefetch Summary: Implement Safefetch as stub routines. This reduces compiler and os dependencies. Reviewed-by: twisti, kvn
author goetz
date Thu, 20 Jun 2013 15:02:05 +0200
parents c18cbe5936b8
children de6a9e811145
comparison
equal deleted inserted replaced
11088:ea4d24c1e0c6 11127:980532a806a5
35 .globl _Copy_conjoint_jints_atomic 35 .globl _Copy_conjoint_jints_atomic
36 .globl _Copy_arrayof_conjoint_jlongs 36 .globl _Copy_arrayof_conjoint_jlongs
37 .globl _Copy_conjoint_jlongs_atomic 37 .globl _Copy_conjoint_jlongs_atomic
38 38
39 .text 39 .text
40
41 .globl SafeFetch32, Fetch32PFI, Fetch32Resume
42 .align 16
43 .type SafeFetch32,@function
44 // Prototype: int SafeFetch32 (int * Adr, int ErrValue)
45 SafeFetch32:
46 movl %esi, %eax
47 Fetch32PFI:
48 movl (%rdi), %eax
49 Fetch32Resume:
50 ret
51
52 .globl SafeFetchN, FetchNPFI, FetchNResume
53 .align 16
54 .type SafeFetchN,@function
55 // Prototype: intptr_t SafeFetchN (intptr_t * Adr, intptr_t ErrValue)
56 SafeFetchN:
57 movq %rsi, %rax
58 FetchNPFI:
59 movq (%rdi), %rax
60 FetchNResume:
61 ret
62 40
63 .globl SpinPause 41 .globl SpinPause
64 .align 16 42 .align 16
65 .type SpinPause,@function 43 .type SpinPause,@function
66 SpinPause: 44 SpinPause: