Kernel: Rename Printer to Formatter

This commit is contained in:
Bananymous
2022-12-13 00:50:21 +02:00
parent e1a15a4989
commit ddc28a8c0e
4 changed files with 11 additions and 153 deletions

View File

@@ -1,5 +1,4 @@
#include <kernel/IO.h>
#include <kernel/kprint.h>
#include <kernel/Serial.h>
#define COM1_PORT 0x3f8
@@ -22,10 +21,8 @@ namespace Serial
IO::outb(COM1_PORT + 0, 0xAE); // Test serial chip (send byte 0xAE and check if serial returns same byte)
// Check if serial is faulty (i.e: not same byte as sent)
if(IO::inb(COM1_PORT + 0) != 0xAE) {
kprint("Could not initialize COM1 serial port\n");
if(IO::inb(COM1_PORT + 0) != 0xAE)
return;
}
// If serial is not faulty set it in normal operation mode
// (not-loopback with IRQs enabled and OUT#1 and OUT#2 bits enabled)