Style: Converting spaces to tabs

This commit is contained in:
Jarkko Toivanen 2023-06-22 02:28:33 +03:00
parent e472492ee3
commit 5ec345e59f
Signed by: jt
GPG key ID: 9151B109B73ECAD5
4 changed files with 185 additions and 185 deletions

View file

@ -31,19 +31,19 @@ int serial_init() {
// (not-loopback with IRQs enabled and OUT#1 and OUT#2 bits enabled)
outb(PORT + 4, 0x0F);
return 0;
}
static int serial_is_transmit_empty() { return inb(PORT + 5) & 0x20; }
}
static int serial_is_transmit_empty() { return inb(PORT + 5) & 0x20; }
static void serial_write_char(char chr) {
static void serial_write_char(char chr) {
while (serial_is_transmit_empty() == 0);
outb(PORT, chr);
}
}
void serial_write_string(const char* text) {
void serial_write_string(const char* text) {
int i = 0;
while(text[i]) {
serial_write_char(text[i]);
i++;
}
}
}