Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
d08d33f3
Commit
d08d33f3
authored
Dec 10, 2009
by
Kai Backman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix calling convention and make memmove restore the g and m
registers. R=rsc
https://golang.org/cl/166049
parent
76f7803a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
memmove.s
src/pkg/runtime/arm/memmove.s
+10
-2
No files found.
src/pkg/runtime/arm/memmove.s
View file @
d08d33f3
...
...
@@ -30,9 +30,14 @@ N = 3
TMP = 3 /* N and TMP don't overlap */
TMP1 = 4
TEXT memmove(SB), 7, $-4
// TODO(kaib): This can be done with the existing registers of LR is re-used. Same for memset.
TEXT memmove(SB), 7, $8
// save g and m
MOVW R9, 4(R13)
MOVW R10, 8(R13)
_memmove:
MOVW
R(TS), to+0(FP) /* need to save for return value */
MOVW
to+0(FP), R(TS)
MOVW from+4(FP), R(FROM)
MOVW n+8(FP), R(N)
...
...
@@ -129,6 +134,9 @@ _f1tail:
B _f1tail
_return:
// restore g and m
MOVW 4(R13), R9
MOVW 8(R13), R10
MOVW to+0(FP), R0
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