Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
magic-lantern
magic-lantern
Commits
8e1d43d0dfdb
Commit
2093518d
authored
Jun 20, 2017
by
alex@thinkpad
Browse files
fix index size in clean_d_cache
(todo: test in selftest.mo) --HG-- branch : cache-fixes
parent
b5f74749486f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/arm-mcr.h
View file @
8e1d43d0
...
...
@@ -121,10 +121,12 @@ static inline void _flush_caches()
/* write back all data into RAM and mark as invalid in data cache */
static
inline
void
clean_d_cache
()
{
/* assume 8KB data cache */
/* http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0092b/ch04s03s04.html */
uint32_t
segment
=
0
;
do
{
uint32_t
line
=
0
;
for
(
;
line
!=
0x
4
00
;
line
+=
0x20
)
for
(
;
line
!=
0x
8
00
;
line
+=
0x20
)
{
asm
(
"mcr p15, 0, %0, c7, c14, 2"
...
...
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