comment some serial driver functionality
@@ -56,16 +56,19 @@ void serial_putchar(char c) {
void serial_puts(char* str) {
//is this string too big to be directly conc'd with buffer?
//idx == strlen(buffer)
+ /*
if (idx + strlen(str) < BUF_SIZE) {
strcat(buffer, str);
idx += strlen(str);
}
else {
+ */
char* ptr = str;
while (*ptr) {
serial_putchar(*(ptr++));
}
- }
+ serial_flush();
+ //}
}
void serial_init() {
@@ -81,5 +84,3 @@ void serial_init() {
outb(PORT + 2, 0xC7); //FIFO, 14-byte threshold
outb(PORT + 4, 0x0B); //irq on, RTS/DSR set
}
-
-
