Skip to content
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

[metal] Add a uprintf() routine, for non-emergency boot logging #905

Merged
merged 4 commits into from
Oct 25, 2023
Merged

[metal] Add a uprintf() routine, for non-emergency boot logging #905

merged 4 commits into from
Oct 25, 2023

Conversation

tkchia
Copy link
Contributor

@tkchia tkchia commented Oct 7, 2023

No description provided.

@tkchia
Copy link
Contributor Author

tkchia commented Oct 7, 2023

I am proposing to add a uprintf() routine which kind of works like kprintf() but — on bare metal — is more suited for non-emergency informational messages.

Currently, on bare metal with VGA, kprintf() is very crash-proof and does not need to dynamically allocate memory for a video "back buffer", but this makes it extremely slow when it needs to scroll the screen (on a real PC). The proposed uprintf() routine works faster, at the expense of being less crash-proof.

Thank you!

@tkchia tkchia marked this pull request as ready for review October 7, 2023 19:40
libc/intrin/kprintf.h Show resolved Hide resolved
tkchia added 4 commits October 25, 2023 20:55
Specifically the code now tries to find the ACPI RSDP,
RSDT/XSDT, FADT, & MADT tables, whether in legacy BIOS
bootup mode or in a UEFI bootup.  These are useful for
figuring out how to (re)enable asynchronous interrupts
in legacy 8259 PIC mode.
@tkchia tkchia requested a review from jart October 25, 2023 21:11
@jart jart merged commit ed17d30 into jart:master Oct 25, 2023
5 checks passed
G4Vi pushed a commit to G4Vi/cosmopolitan that referenced this pull request Jan 19, 2024
…#905)

* [metal] Add a uprintf() routine, for non-emergency boot logging
* [metal] _Really_ push forward timing of VGA TTY initialization
* [metal] Do something useful with uprintf()
* [metal] Locate some ACPI tables, for later hardware detection

Specifically the code now tries to find the ACPI RSDP,
RSDT/XSDT, FADT, & MADT tables, whether in legacy BIOS
bootup mode or in a UEFI bootup.  These are useful for
figuring out how to (re)enable asynchronous interrupts
in legacy 8259 PIC mode.
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