summaryrefslogtreecommitdiff
path: root/v/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'v/vm.c')
-rw-r--r--v/vm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/v/vm.c b/v/vm.c
index 8fd9811..df302b4 100644
--- a/v/vm.c
+++ b/v/vm.c
@@ -210,7 +210,7 @@ void handle_trap(trapframe_t* tf)
static void coherence_torture()
{
// cause coherence misses without affecting program semantics
- unsigned int random = ENTROPY;
+ uint64_t random = ENTROPY;
while (1) {
uintptr_t paddr = DRAM_BASE + ((random % (2 * (MAX_TEST_PAGES + 1) * PGSIZE)) & -4);
#ifdef __riscv_atomic
@@ -225,7 +225,7 @@ static void coherence_torture()
void vm_boot(uintptr_t test_addr)
{
- unsigned int random = ENTROPY;
+ uint64_t random = ENTROPY;
if (read_csr(mhartid) > 0)
coherence_torture();