Skip to content

post: emit debug messages to the POST port#67

Merged
dancrossnyc merged 1 commit intomainfrom
post
Mar 10, 2026
Merged

post: emit debug messages to the POST port#67
dancrossnyc merged 1 commit intomainfrom
post

Conversation

@dancrossnyc
Copy link
Copy Markdown
Collaborator

We did this during initial development of phbl, but then backed it out because it didn't write to anything on gimlet (frankly, I had completely forgotten about removing it). But writes to port 80 do go somewhere on Cosmo! So reintegrate it.

We now emit two codes as matter of course during normal operation: (almost) immediately on entry to phbl (while we're still in real mode) and again immediately prior to jumping into the host OS. If phbl panics for any reason, it will emit a message prior to halting.

@dancrossnyc dancrossnyc requested a review from citrus-it March 6, 2026 22:48
Comment thread src/start.S Outdated
Comment thread src/start.S Outdated
We did this during initial development of phbl, but then backed it out
because it didn't write to anything on gimlet (frankly, I had completely
forgotten about removing it).  But writes to port 80 _do_ go somewhere
on Cosmo!  So reintegrate it.

We now emit two codes as matter of course during normal operation:
(almost) immediately on entry to phbl (while we're still in real mode)
and again immediately prior to jumping into the host OS.  If `phbl`
panics for any reason, it will emit a message prior to halting.

Signed-off-by: Dan Cross <cross@oxidecomputer.com>
@dancrossnyc
Copy link
Copy Markdown
Collaborator Author

Tested on cosmo-os. The trampoline, which was the most invasive part of this change, works.

@dancrossnyc dancrossnyc merged commit 6129b55 into main Mar 10, 2026
6 checks passed
@dancrossnyc dancrossnyc deleted the post branch March 10, 2026 01:05
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