Skip to content

[draft] libmicrokit: API for 64-bit number debug print - #583

Draft
ZGwtao wants to merge 2 commits into
seL4:mainfrom
ZGwtao:tmp-dbg_put64
Draft

[draft] libmicrokit: API for 64-bit number debug print#583
ZGwtao wants to merge 2 commits into
seL4:mainfrom
ZGwtao:tmp-dbg_put64

Conversation

@ZGwtao

@ZGwtao ZGwtao commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

This commit once added microkit_dbg_put64 that helps to print out large 64-bit integer number. However, it seems functions like puthex64 are more preferred and duplicated everywhere in the repo:

  • example/ethernet/eth.c
  • example/ethernet/pass.c
  • example/timer/timer.c
  • loader/src/uart.c
  • monitor/src/util.c

Would it be a better way to provide a microkit_dbg_puthex64 than duplicating all the above implementations?

This commit adds microkit_dbg_put64 that helps
to print out large number (e.g., vaddrs)

Signed-off-by: Guangtao Zhu <guangtaozhu@outlook.com>
@ZGwtao
ZGwtao marked this pull request as draft July 29, 2026 14:37
@ZGwtao ZGwtao changed the title libmicrokit: add 'microkit_dbg_put64' [draft] libmicrokit: API for 64-bit number debug print Jul 29, 2026
This commit copies the reference implementation of
'puthex32' and 'puthex64' from the source code of
microkit monitor. Such two new APIs avoid duplicating
the implementations everywhere in the repo.

Signed-off-by: Guangtao Zhu <guangtaozhu@outlook.com>
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.

1 participant