diff options
author | Danny Holman <dholman@gymli.org> | 2022-03-22 13:48:09 -0500 |
---|---|---|
committer | Danny Holman <dholman@gymli.org> | 2022-03-22 13:54:37 -0500 |
commit | fe3aab170c33ae4530f0580c52509f4c414a8769 (patch) | |
tree | 4eeb7c2d1ef7e2a7b177fe6d25eeb2a4dfff21a6 /arch/i386/kernel | |
parent | 84332707f1df86c25c1f94883044c5e8fe2e20a3 (diff) |
arch: i386: make serial_writestring inline
The serial_writestring function is small enough and platform-agnostic,
and therefore it should be moved into the main serial header and marked
as inline.
Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'arch/i386/kernel')
-rw-r--r-- | arch/i386/kernel/serial.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/i386/kernel/serial.c b/arch/i386/kernel/serial.c index 58163cb..5bd4105 100644 --- a/arch/i386/kernel/serial.c +++ b/arch/i386/kernel/serial.c @@ -40,8 +40,3 @@ void write_serial(char a) { while (is_transmit_empty() == 0); outb(PORT, a); } - -void serial_writestring(const char *str) { - for (size_t i = 0; i < strlen(str); i++) - write_serial(str[i]); -} |