Kernel: Rename Printer to Formatter
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user