Fix braces + init_paging args
This commit is contained in:
@@ -21,9 +21,6 @@ unsigned char inb(int port)
|
||||
return data;
|
||||
}
|
||||
|
||||
// COM1
|
||||
#define PORT 0x3F8
|
||||
|
||||
int serial_init()
|
||||
{
|
||||
outb(PORT + 1, 0x00); // Disable all interrupts
|
||||
@@ -36,8 +33,7 @@ int serial_init()
|
||||
outb(PORT + 4, 0x1E); // Set in loopback mode, test the serial chip
|
||||
outb(PORT + 0, 0xAE); // Test serial chip (send byte 0xAE and check if serial returns same byte)
|
||||
|
||||
if (inb(PORT) != 0xAE)
|
||||
{
|
||||
if (inb(PORT) != 0xAE) {
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
@@ -66,8 +62,7 @@ void skputc(char c)
|
||||
void skputs(const char* str)
|
||||
{
|
||||
unsigned int i=0;
|
||||
while (str[i])
|
||||
{
|
||||
while (str[i]) {
|
||||
skputc(str[i]);
|
||||
i++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user