Skip to content

Commit bfa8204

Browse files
committed
examples: use higher base address for page alloc example
1 parent d2e2eb7 commit bfa8204

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • examples/no-std/page-alloc/src

examples/no-std/page-alloc/src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ fn main() {
1313
let token = match syscall_get!(KERNEL_PAGE_ALLOC_V0, KERNEL_PAGE_ALLOC_V0, key!("4kib"), 1) {
1414
Ok(token) => token,
1515
Err((e, ex)) => {
16-
println!("error: {e:?}[{ex}]");
16+
println!("error: {e:?}[{:?}]", Key(&ex));
1717
return;
1818
}
1919
};
@@ -29,14 +29,14 @@ fn main() {
2929
) {
3030
Ok(ty) => ty,
3131
Err((e, ex)) => {
32-
println!("error: {e:?}[{ex}]");
32+
println!("error: {e:?}[{:?}]", Key(&ex));
3333
return;
3434
}
3535
};
3636

3737
println!("token type: {:?}", Key(&ty));
3838

39-
const TARGET_ADDR: u64 = 0x400_0000_0000;
39+
const TARGET_ADDR: u64 = 0x3C00_0000_0000;
4040

4141
// Map it in.
4242
match syscall_set!(
@@ -48,7 +48,7 @@ fn main() {
4848
) {
4949
Ok(_) => (),
5050
Err((e, ex)) => {
51-
println!("error mapping in token: {e:?}[{ex}]");
51+
println!("error mapping in token: {e:?}[{:?}]", Key(&ex));
5252
return;
5353
}
5454
}

0 commit comments

Comments
 (0)