Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-21fa
project05b
Commits
752826ee
Commit
752826ee
authored
4 years ago
by
Adam Blank
Browse files
Options
Download
Email Patches
Plain Diff
Update util.h
parent
2d9a8c08
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/util.h
+3
-1
include/util.h
with
3 additions
and
1 deletion
+3
-1
include/util.h
View file @
752826ee
...
@@ -11,7 +11,9 @@ typedef uint8_t page_t[PAGE_SIZE];
...
@@ -11,7 +11,9 @@ typedef uint8_t page_t[PAGE_SIZE];
* Forces a memory read of the byte at the given address.
* Forces a memory read of the byte at the given address.
* This will load the byte at the address into the cache.
* This will load the byte at the address into the cache.
*/
*/
void
force_read
(
const
void
*
address
);
inline
void
force_read
(
const
void
*
address
)
{
*
(
volatile
uint8_t
*
)
address
;
}
/**
/**
* Evicts any cache line currently storing the given address.
* Evicts any cache line currently storing the given address.
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help