Skip to content

Conversation

@vl-prokopenko
Copy link

This is more reliable on modern hardware than a keyboard reset. Using the ud2 instruction without an IDT is almost guaranteed to cause a triple fault and a "keyboard reset" is not, and is also way simpler. The keyboard reset and return methods are included as fallback, even though they're unlikely to be used.

@klange
Copy link
Owner

klange commented Sep 24, 2025

Are you actually experiencing a failure to reboot that this resolves?

Since we're already loading an empty IDT, plenty of other things are effectively guaranteed to happen, such as the local timer interrupt.

@vl-prokopenko
Copy link
Author

I don't. I simply believe this is a cleaner and faster way to reboot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants