Skip to content

Commit

Permalink
Merge pull request #1466 from hermit-os/mp-type
Browse files Browse the repository at this point in the history
fix(apic): fix width of MP config table entry type
  • Loading branch information
mkroening authored Nov 26, 2024
2 parents c2c4b1f + 5f1f8cc commit be363fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arch/x86_64/kernel/apic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ fn detect_from_mp() -> Result<PhysAddr, ()> {
// entries starts directly after the config table
addr += mem::size_of::<ApicConfigTable>();
for _i in 0..mp_config.entry_count {
match unsafe { *(ptr::with_exposed_provenance(addr)) } {
match unsafe { *(ptr::with_exposed_provenance::<u8>(addr)) } {
// CPU entry
0 => {
let cpu_entry: &ApicProcessorEntry =
Expand Down

0 comments on commit be363fa

Please sign in to comment.