Skip to content

Commit

Permalink
gicv3_its: Drop a couple of redundant vm_offset_t casts
Browse files Browse the repository at this point in the history
These are already vm_offset_t, no need to cast.
  • Loading branch information
jrtc27 committed Feb 7, 2024
1 parent f493ea6 commit b8afdda
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sys/arm64/arm64/gicv3_its.c
Original file line number Diff line number Diff line change
Expand Up @@ -718,8 +718,7 @@ gicv3_its_pendtables_init(struct gicv3_its_softc *sc)
0, LPI_PENDTAB_MAX_ADDR, LPI_PENDTAB_ALIGN, 0);

/* Flush so the ITS can see the memory */
cpu_dcache_wb_range((vm_offset_t)sc->sc_pend_base[i],
LPI_PENDTAB_SIZE);
cpu_dcache_wb_range(sc->sc_pend_base[i], LPI_PENDTAB_SIZE);
}
}

Expand Down Expand Up @@ -1329,8 +1328,7 @@ its_device_alloc(struct gicv3_its_softc *sc, int devid)
ptable->ptab_page_size, 0);

if (!shareable)
cpu_dcache_wb_range((vm_offset_t)l2_table,
ptable->ptab_l2_size);
cpu_dcache_wb_range(l2_table, ptable->ptab_l2_size);

table[index] = vtophys(l2_table) | GITS_BASER_VALID;
if (!shareable)
Expand Down

0 comments on commit b8afdda

Please sign in to comment.