You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jailhouse
Hi!
I want to create an inmate where I generate a periodic interrupt with a TTC timer (I am using a zynq zcu102 board). The address of the TTC is 0xFF120000 and the interrupt number is 71. I am writing the c code for the inmate and I have used irq_init(Handler) and irq_enable(71) to enable the interrupt, but now I don't know how to configure and start the TTC timer. Are there any functions to do that? Or how could I do it?
Ralf Ramsauer
unread,
Oct 5, 2023, 3:11:29 PM10/5/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Sara Alonso, Jailhouse
Hi Sara,
For Jailhouse: Extend the configuration of the inmate by assigning the
memory region to the guest. Second, add IRQ 71 to the irqchips member of
the inmate's configuration. Cf. zynqmp-zcu102-linux-demo.c to see how
specific interrupts are assigned to the cell.
Have a look at the Zynq's reference manual to see how the timer can be
used and configured.