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

[Feature] Add debug-keys support #109

Open
7 tasks
wipawel opened this issue Oct 13, 2020 · 0 comments
Open
7 tasks

[Feature] Add debug-keys support #109

wipawel opened this issue Oct 13, 2020 · 0 comments
Labels
feature New feature or request good first issue Good for newcomers Priority: 5 Optional feature

Comments

@wipawel
Copy link
Contributor

wipawel commented Oct 13, 2020

Is your feature request related to a problem? Please describe.
When UART input or PS/2 keyboard support is added, we can add debug keys support for various runtime actions.

Describe the solution you'd like
I would implement a register_debugkey(key, callback, help_msg) interface to assign callback functions to dedicated key combinations.

I would support the following keys:

  • '?' - list all registered keys, functions and help msgs
  • 'p' - pause execution of BSP (or all CPUs - that would require IPI support)
  • 'u' - unpause the above
  • 'r' - dump register content
  • 't' - dump page tables content
  • 'c' - crash
  • '+' - toggle debug mode
@wipawel wipawel added feature New feature or request Priority: 3 Regular feature labels Oct 13, 2020
@wipawel wipawel added this to the v0.3 milestone Oct 13, 2020
@MegaMaddin MegaMaddin self-assigned this Oct 22, 2020
@wipawel wipawel added Priority: 4 Nice-to-have feature and removed Priority: 3 Regular feature labels Jan 29, 2022
@wipawel wipawel removed this from the v0.3.1 milestone Jan 29, 2022
@wipawel wipawel added Priority: 5 Optional feature good first issue Good for newcomers and removed Priority: 4 Nice-to-have feature labels Jan 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request good first issue Good for newcomers Priority: 5 Optional feature
Projects
None yet
Development

No branches or pull requests

2 participants