[metal] Show "screen of death" on VGA console upon program crash #650
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
With commit 5aaadf1, the VGA console code can now display information about program crashes:
My aim in implementing a "screen of death" is to make it easier to debug program crashes on actual bare metal setups (where we will not be able to use e.g. QEMU's or Bochs's debugging features). So yes, I have tested the "screen of death" on a real machine. And it does work. 🙂
I also included a few other less major changes within this PR, namely https://github.com/tkchia/cosmopolitan/commit/9926ed74f11222d4bf0c71a1944c2e717a9552b8, https://github.com/tkchia/cosmopolitan/commit/7059a7109d3a7647ecafc3f7b178b1dd12ec83d8, and https://github.com/tkchia/cosmopolitan/commit/b8cd8a07b48b726fde2c544ea42f715e80d23a04.