Commit 752826ee authored by Adam Blank's avatar Adam Blank
Browse files

Update util.h

parent 2d9a8c08
No related merge requests found
Showing with 3 additions and 1 deletion
+3 -1
...@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment