Cross Reference: linux_sparc.s
xref
: /
openjdk7
/
hotspot
/
src
/
os_cpu
/
linux_sparc
/
vm
/
linux_sparc.s
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
133
N/A
#
1472
N/A
#
Copyright
(c)
2005
,
2008
,
Oracle
and
/
or
its
affiliates
.
All
rights
reserved
.
133
N/A
#
DO
NOT
ALTER
OR
REMOVE
COPYRIGHT
NOTICES
OR
THIS
FILE
HEADER
.
133
N/A
#
133
N/A
#
This
code
is
free
software
;
you
can
redistribute
it
and
/
or
modify
it
133
N/A
#
under
the
terms
of
the
GNU
General
Public
License
version
2
only
,
as
133
N/A
#
published
by
the
Free
Software
Foundation
.
133
N/A
#
133
N/A
#
This
code
is
distributed
in
the
hope
that
it
will
be
useful
,
but
WITHOUT
133
N/A
#
ANY
WARRANTY
;
without
even
the
implied
warranty
of
MERCHANTABILITY
or
133
N/A
#
FITNESS
FOR
A
PARTICULAR
PURPOSE
.
See
the
GNU
General
Public
License
133
N/A
#
version
2
for
more
details
(a
copy
is
included
in
the
LICENSE
file
that
133
N/A
#
accompanied
this
code
).
133
N/A
#
133
N/A
#
You
should
have
received
a
copy
of
the
GNU
General
Public
License
version
133
N/A
#
2
along
with
this
work
;
if
not
,
write
to
the
Free
Software
Foundation
,
133
N/A
#
Inc
.,
51
Franklin
St
,
Fifth
Floor
,
Boston
,
MA
0
2110
-
1301
USA
.
133
N/A
#
1472
N/A
#
Please
contact
Oracle
,
500
Oracle
Parkway
,
Redwood
Shores
,
CA
94065
USA
1472
N/A
#
or
visit
www
.
oracle
.
com
if
you
need
additional
information
or
have
any
1472
N/A
#
questions
.
133
N/A
#
133
N/A
133
N/A
#
Prototype
:
int
SafeFetch32
(
int
*
adr
,
int
ErrValue
)
133
N/A
#
The
"ld"
at
Fetch32
is
potentially
faulting
instruction
.
133
N/A
#
If
the
instruction
traps
the
trap
handler
will
arrange
133
N/A
#
for
control
to
resume
at
Fetch32Resume
.
133
N/A
#
By
convention
with
the
trap
handler
we
ensure
there
is
a
non
-
CTI
133
N/A
#
instruction
in
the
trap
shadow
.
133
N/A
133
N/A
133
N/A
.
globl
SafeFetch32
,
Fetch32PFI
,
Fetch32Resume
133
N/A
.
globl
SafeFetchN
133
N/A
.
align
32
133
N/A
.
type
SafeFetch32
,@
function
133
N/A
SafeFetch32
:
133
N/A
mov
%
o0
, %
g1
133
N/A
mov
%
o1
, %
o0
133
N/A
Fetch32PFI
:
133
N/A
# <--
Potentially
faulting
instruction
133
N/A
ld
[%
g1
], %
o0
133
N/A
Fetch32Resume
:
133
N/A
nop
133
N/A
retl
133
N/A
nop
133
N/A
133
N/A
.
globl
SafeFetchN
,
FetchNPFI
,
FetchNResume
133
N/A
.
type
SafeFetchN
,@
function
133
N/A
.
align
32
133
N/A
SafeFetchN
:
133
N/A
mov
%
o0
, %
g1
133
N/A
mov
%
o1
, %
o0
133
N/A
FetchNPFI
:
133
N/A
ldn
[%
g1
], %
o0
133
N/A
FetchNResume
:
133
N/A
nop
133
N/A
retl
133
N/A
nop
133
N/A
133
N/A
#
Possibilities
:
133
N/A
# --
membar
133
N/A
# --
CAS
(
SP
+
BIAS
,
G0
,
G0
)
133
N/A
# --
wr
%
g0
, %
asi
133
N/A
133
N/A
.
globl
SpinPause
133
N/A
.
type
SpinPause
,@
function
133
N/A
.
align
32
133
N/A
SpinPause
:
133
N/A
retl
133
N/A
mov
%
g0
, %
o0
133
N/A
133
N/A
.
globl
_Copy_conjoint_jlongs_atomic
133
N/A
.
type
_Copy_conjoint_jlongs_atomic
,@
function
133
N/A
_Copy_conjoint_jlongs_atomic
:
133
N/A
cmp
%
o0
, %
o1
133
N/A
bleu
4f
133
N/A
sll
%
o2
,
3
, %
o4
133
N/A
ba
2f
133
N/A
1
:
133
N/A
subcc
%
o4
,
8
, %
o4
133
N/A
std
%
o2
, [%
o1
]
133
N/A
add
%
o0
,
8
, %
o0
133
N/A
add
%
o1
,
8
, %
o1
133
N/A
2
:
133
N/A
bge
,a
1
b
133
N/A
ldd
[%
o0
], %
o2
133
N/A
ba
5f
133
N/A
nop
133
N/A
3
:
133
N/A
std
%
o2
, [%
o1
+%
o4
]
133
N/A
4
:
133
N/A
subcc
%
o4
,
8
, %
o4
133
N/A
bge
,a
3
b
133
N/A
ldd
[%
o0
+%
o4
], %
o2
133
N/A
5
:
133
N/A
retl
133
N/A
nop
133
N/A
133
N/A
133
N/A
.
globl
_flush_reg_windows
133
N/A
.
align
32
133
N/A
_flush_reg_windows
:
133
N/A
ta
0x03
133
N/A
retl
133
N/A
mov
%
fp
, %
o0