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
6dbd1429
Commit
6dbd1429
authored
Nov 11, 2009
by
Kai Backman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add cache flushing call after generating closure.
go/test: passes 88% (306/347) R=rsc
https://golang.org/cl/152089
parent
e5636d6e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
src/pkg/runtime/arm/closure.c
src/pkg/runtime/arm/closure.c
+4
-0
src/pkg/runtime/linux/arm/sys.s
src/pkg/runtime/linux/arm/sys.s
+11
-0
No files found.
src/pkg/runtime/arm/closure.c
View file @
6dbd1429
...
...
@@ -43,6 +43,8 @@ vars: WORD arg0
WORD arg2
*/
extern
void
cacheflush
(
byte
*
start
,
byte
*
end
);
#pragma textflag 7
void
runtime
·
closure
(
int32
siz
,
byte
*
fn
,
byte
*
arg0
)
...
...
@@ -121,5 +123,7 @@ runtime·closure(int32 siz, byte *fn, byte *arg0)
if
(
p
>
q
)
throw
(
"bad math in sys.closure"
);
cacheflush
(
*
ret
,
q
+
siz
);
}
src/pkg/runtime/linux/arm/sys.s
View file @
6dbd1429
...
...
@@ -22,6 +22,9 @@
#define SYS_futex (SYS_BASE + 240)
#define SYS_exit_group (SYS_BASE + 248)
#define ARM_BASE (SYS_BASE + 0x0f0000)
#define SYS_ARM_cacheflush (ARM_BASE + 2)
TEXT
write
(
SB
),7,$0
MOVW
0
(
FP
),
R0
MOVW
4
(
FP
),
R1
...
...
@@ -136,3 +139,11 @@ TEXT clone(SB),7,$0
MOVW
R0
,
(
R1
)
TEXT
cacheflush
(
SB
),7,$0
MOVW
0
(
FP
),
R0
MOVW
4
(
FP
),
R1
MOVW
$
0
,
R2
MOVW
$SYS_ARM_cacheflush
,
R7
SWI
$
0
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