[arch][riscv] fix rounding issue with PAGE_SIZE on riscv64

Inadvertently added this bug where PAGE_SIZE type is 32bit which causes
truncating when using it to round a kernel address.
This commit is contained in:
Travis Geiselbrecht
2025-09-23 23:05:15 -07:00
parent b7d69d8804
commit 5a17519e54

View File

@@ -8,7 +8,7 @@
#pragma once #pragma once
#define PAGE_SIZE_SHIFT 12 #define PAGE_SIZE_SHIFT 12
#define PAGE_SIZE (1U << PAGE_SIZE_SHIFT) #define PAGE_SIZE (1UL << PAGE_SIZE_SHIFT)
// XXX is this right? // XXX is this right?
#define CACHE_LINE 32 #define CACHE_LINE 32