Use serial for output without LFB #123
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request adds support for serial port interrupts and improves the integration of serial input/output with the system's input handling. The main changes include configuring the serial interrupt handler, updating the input and output routines to handle both keyboard and serial input, and ensuring proper processing of special characters in serial output.
Serial port interrupt support:
serial_init:to set up the interrupt gate, enable the serial IRQ, and configure the serial port to generate interrupts when data is available. (src/drivers/serial.asm)int_serial:interrupt handler, which calls the serial input routine, acknowledges the IRQ, and wakes up all SMP threads as a workaround. (src/interrupt.asm)serial_interrupt:routine to receive characters from the serial port and treat them as keyboard input. (src/drivers/serial.asm)Input/output integration improvements:
b_inputsyscall to scan for input from both keyboard and serial sources, using the sharedkeyvariable set by interrupt handlers. (src/syscalls/io.asm)src/syscalls/io.asm) [1] [2]