Skip to content

Commit

Permalink
fix til dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
rbran committed Jan 7, 2025
1 parent 6d16ec9 commit a2dc300
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/til/pointer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ impl PointerRaw {
TAPTR_RESTRICT => Some(PointerModifier::Restricted),
_ => unreachable!(),
};
// TODO find menaing: commonly set as true
let is_unknown_ta10 = tah.0 .0 & 0x10 != 0;
// TODO find meaning: normally 5 in one type at `vc10_64` and `ntddk64`
let ta_lower = (tah.0 .0 & 0xf) as u8;

Ok(Self {
Expand Down
14 changes: 9 additions & 5 deletions src/til/section.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,15 @@ impl TILSection {
let cn = CCPtrSize::from_cm_raw(header.cm, header.size_int);
let cm = CCModel::from_cm_raw(header.cm);

let dependencies = header
.dependencies
.split(|x| *x == b',')
.map(<[_]>::to_vec)
.collect();
let dependencies = if header.dependencies.len() != 0 {
header
.dependencies
.split(|x| *x == b',')
.map(<[_]>::to_vec)
.collect()
} else {
vec![]
};

Ok(TILSection {
format: header.format,
Expand Down

0 comments on commit a2dc300

Please sign in to comment.