mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
a bit more debugging around dictionary creation
This commit is contained in:
parent
6d2be1b6d7
commit
7af04b7000
1 changed files with 2 additions and 0 deletions
|
|
@ -305,11 +305,13 @@ impl BasisCache {
|
||||||
// allocate a vpage offset for the dictionary
|
// allocate a vpage offset for the dictionary
|
||||||
let dict_index = basis.dict_get_free_offset(hw);
|
let dict_index = basis.dict_get_free_offset(hw);
|
||||||
let dict_offset = VirtAddr::new(dict_index as u64 * DICT_VSIZE).unwrap();
|
let dict_offset = VirtAddr::new(dict_index as u64 * DICT_VSIZE).unwrap();
|
||||||
|
log::debug!("dict_add at VA 0x{:x?}", dict_offset);
|
||||||
let pp = basis.v2p_map.entry(dict_offset).or_insert_with(|| {
|
let pp = basis.v2p_map.entry(dict_offset).or_insert_with(|| {
|
||||||
let mut ap = hw.try_fast_space_alloc().expect("No free space to allocate dict");
|
let mut ap = hw.try_fast_space_alloc().expect("No free space to allocate dict");
|
||||||
ap.set_valid(true);
|
ap.set_valid(true);
|
||||||
ap
|
ap
|
||||||
});
|
});
|
||||||
|
log::debug!("dict_add at PA 0x {:x?}", pp);
|
||||||
assert!(pp.valid(), "v2p returned an invalid page");
|
assert!(pp.valid(), "v2p returned an invalid page");
|
||||||
|
|
||||||
// create the cache entry
|
// create the cache entry
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue