Skip to content

Commit 200a3f7

Browse files
committed
CHECKPOINT we got to d00dfeed
Signed-off-by: Daniel Maslowski <info@orangecms.org>
1 parent 4e327e9 commit 200a3f7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

riscv64/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,9 @@ pub extern "C" fn main9(hartid: usize, dtb_ptr: u64) -> ! {
350350

351351
// fixed 25 bits, used 39 bits
352352
const VFIXED: usize = 0xff_ff_ff_80__00_00_00_00;
353-
let ppn2 = 255 << (9 + 9 + 12);
354-
let ppn1 = 255 << (9 + 12);
355-
let ppn0 = 255 << 12;
353+
let ppn2 = 0x1ff << (9 + 9 + 12);
354+
let ppn1 = 0x1f8 << (9 + 12);
355+
let ppn0 = 0; // 0x1ff << 12;
356356
let poff = 0x0;
357357
let vaddr = VFIXED | ppn2 | ppn1 | ppn0 | poff;
358358
println!("{vaddr:016x}");

0 commit comments

Comments
 (0)