Mercurial > hg > truffle
comparison src/os_cpu/solaris_x86/vm/solaris_x86_32.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 | 0a8e0d4345b3 |
children | de6a9e811145 |
comparison
equal
deleted
inserted
replaced
11088:ea4d24c1e0c6 | 11127:980532a806a5 |
---|---|
51 fixcw: | 51 fixcw: |
52 pushl $0x27f | 52 pushl $0x27f |
53 fldcw 0(%esp) | 53 fldcw 0(%esp) |
54 popl %eax | 54 popl %eax |
55 ret | 55 ret |
56 | |
57 .align 16 | |
58 .globl SafeFetch32 | |
59 .globl SafeFetchN | |
60 .globl Fetch32PFI, Fetch32Resume | |
61 SafeFetch32: | |
62 SafeFetchN: | |
63 movl 0x8(%esp), %eax | |
64 movl 0x4(%esp), %ecx | |
65 Fetch32PFI: | |
66 movl (%ecx), %eax | |
67 Fetch32Resume: | |
68 ret | |
69 | |
70 | 56 |
71 .align 16 | 57 .align 16 |
72 .globl SpinPause | 58 .globl SpinPause |
73 SpinPause: | 59 SpinPause: |
74 rep | 60 rep |