[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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user