-
Notifications
You must be signed in to change notification settings - Fork 45
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
Reduce idle cpu consumtion (using the hlt instruction) #53
Comments
The issue here is that Mu doesn't use interrupts yet for the keyboard.. 🤔 |
Ohh, I think I see what you mean! It looks like all my test programs continue to work if I just However, when I make this change, running the game of life inside the tiny screen in the shell (following the quickstart and then pressing |
You may need to adjust the PIT reload value. The BIOS default is the maximum, which generates a timer interrupt roughly every 55ms. |
This is a feature request: Currently, when waiting for keyboard input, Mu uses a busy loop (which you can tell by the high CPU usage in qemu, for example in the shell app).
On x86, idling is pretty simple, by using the HLT instruction.
The text was updated successfully, but these errors were encountered: