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

implement basic kernel printing functionality #26

Open
ta5een opened this issue Oct 8, 2024 · 0 comments
Open

implement basic kernel printing functionality #26

ta5een opened this issue Oct 8, 2024 · 0 comments
Assignees
Labels
scope:kernel type:feature Introduces a new feature

Comments

@ta5een
Copy link
Owner

ta5een commented Oct 8, 2024

Depends on #25

Implement basic functionality of the following functions to be used in the kernel for logging and debugging purposes:

  • printf, snprintf, sprintf, vprintf
  • putc, putchar
  • puts

Stream-oriented versions (such as fprintf) are out of scope until file I/O capabilities are implemented. As a result, the concepts of stdout and stderr will not be applicable and will not be implemented for now.

For now, the functions listed above should output all strings to the serial port and the VGA text buffer.

Future considerations:

  • Implementing logging levels (debug, info, error, etc.) for filtering log messages. See implement simple kernel logging interface #22.
  • Ensuring thread safety in concurrent environments.
  • Introducing buffering to optimise output performance.
@ta5een ta5een added scope:kernel type:feature Introduces a new feature labels Oct 8, 2024
@ta5een ta5een self-assigned this Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope:kernel type:feature Introduces a new feature
Projects
None yet
Development

No branches or pull requests

1 participant