-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to configure GIC on qemu(cortex-a57+virt)? #1
Comments
Hi, Nienfeng Thank you for having interest in my sample codes. Would you please see macros in include/hal-aarch64/exception.h of my codes.
And I use them like this:
I tried to fix you vector entry with the following patch.
And then I saw the following result.
But it seems that this svc call entered into the lower_el_aarch32_sync entry.
I hope this comment will help your study. Thanks, |
Hi, Nienfeng After all, I noticed that the code I shew above was correct. And I found the reason why your codes could not receive any interrupts.
I got the following result. It might be what you would like to get.
Thanks, |
Hi, Takeharukato Best Regards. |
I'm glad I seen this I have spent nearly a week trying to figure out and debug the timer IRQ stuff. I'll check out the patches and adapt my code accordingly. Hopefully this will work! |
Hi, takeharukato: Can you help me to find the reason? |
Hi,
I am study timer irq in qemu(cortex-a57+virt), so I reference your project. But I have some problem, the timer irq doesn't work currently in my study. If could, can you give me some suggestion? I am very appreciate it.
My study is armv8-bare-metal (commit 80cdcd3aec00942b5af28acaf350c136abf1a730),
Current status is I can set timer and can read timeout from CNTV_CTL_EL0[2]: ISTATUS. But I am not familiar with GIC of armv8, so I reference your gic-pl390 and call init_gicd()/init_gicc()/gicd_enable_int(27) to do test. But still can get the interrupt exception and call the exception handler. The log is blow
The text was updated successfully, but these errors were encountered: