xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* xen/arm: gicv3: Computation of GICD_TYPER.IDbits
@ 2015-09-18  7:26 Vijay Kilari
  2015-09-18  8:33 ` Ian Campbell
  0 siblings, 1 reply; 4+ messages in thread
From: Vijay Kilari @ 2015-09-18  7:26 UTC (permalink / raw)
  To: Julien Grall, Ian Campbell, Stefano Stabellini,
	Stefano Stabellini
  Cc: xen-devel@lists.xen.org

Hi Julien,

 static int vgic_v3_distr_mmio_read(struct vcpu *v, mmio_info_t *info)
 {
     ...
           case GICD_TYPER:
           {
               /*
                * Number of interrupt identifier bits supported by the GIC
                * Stream Protocol Interface
                */
               unsigned int irq_bits =
get_count_order(vgic_num_irqs(v->domain));
}

I think we should use ilog2() instead of get_count_order()?

Regards
Vijay

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-09-18 10:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-18  7:26 xen/arm: gicv3: Computation of GICD_TYPER.IDbits Vijay Kilari
2015-09-18  8:33 ` Ian Campbell
2015-09-18  9:48   ` Vijay Kilari
2015-09-18 10:21     ` Julien Grall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).