refactor(kernel): minor refactor. Changed naming convention

This commit is contained in:
karina
2026-04-23 22:17:56 +04:00
parent 93bce5a46d
commit f469da7e0b
5 changed files with 5 additions and 5 deletions
+25
View File
@@ -0,0 +1,25 @@
#include <IO/Serial.h>
#include <Arch/IO.h>
#include <Arch/CPU.h>
Int32 IOSerialPutCharacter(ASCII character) {
// TXFF -- TRansmit FIFO Full for PL011 is 5 bit of FR reg (0x18)
UInt64 uartFR = kUARTBaseAddress + 0x18;
while ((IOAddressRead32(uartFR) & (1 << 5)) != 0) {
CPUYield();
}
IOAddressWrite32(kUARTBaseAddress, character);
return character;
}
Int32 IOSerialPutString(const ASCII* string) {
Int i = 0;
while (string[i] != '\0') {
IOSerialPutCharacter(string[i]);
i++;
}
return i;
}