Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
b83549a7
Commit
b83549a7
authored
Oct 14, 2009
by
Kai Backman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cas
R=rsc APPROVED=rsc DELTA=31 (1 added, 8 deleted, 22 changed) OCL=35752 CL=35757
parent
f72ea8eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
4 deletions
+35
-4
src/pkg/runtime/arm/cas.s
src/pkg/runtime/arm/cas.s
+17
-2
src/pkg/sync/asm_arm.s
src/pkg/sync/asm_arm.s
+18
-2
No files found.
src/pkg/runtime/arm/cas.s
View file @
b83549a7
...
@@ -10,5 +10,20 @@
...
@@ -10,5 +10,20 @@
//
}
else
//
}
else
//
return
0
;
//
return
0
;
TEXT
cas
+0(
SB
),0,$12
TEXT
cas
(
SB
),7,$0
TODO
MOVW
0
(
FP
),
R1
//
*
val
MOVW
4
(
FP
),
R2
//
old
MOVW
8
(
FP
),
R3
//
new
l
:
LDREX
(
R1
),
R0
CMP
R0
,
R2
BNE
fail
STREX
R3
,
(
R1
),
R0
CMP
$
0
,
R0
BNE
l
MOVW
$
1
,
R0
RET
fail
:
MOVW
$
0
,
R0
RET
src/pkg/sync/asm_arm.s
View file @
b83549a7
...
@@ -10,5 +10,21 @@
...
@@ -10,5 +10,21 @@
//
}
else
//
}
else
//
return
false
;
//
return
false
;
TEXT
sync
·
cas
+0(
SB
),0,$12
TEXT
sync
·
cas
(
SB
),7,$0
TODO
MOVW
0
(
FP
),
R1
//
*
val
MOVW
4
(
FP
),
R2
//
old
MOVW
8
(
FP
),
R3
//
new
l
:
LDREX
(
R1
),
R0
CMP
R0
,
R2
BNE
fail
STREX
R3
,
(
R1
),
R0
CMP
$
0
,
R0
BNE
l
MOVW
$
1
,
R0
MOVW
R0
,
16
(
SP
)
RET
fail
:
MOVW
$
0
,
R0
MOVW
R0
,
16
(
SP
)
RET
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment