summaryrefslogtreecommitdiff
path: root/kernel/libk/io.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-05-03kernel: x86_64: rename x86Danny Holman1-78/+0
Rename the x86 arch-specific directory to x86_64, reflecting clang's architecture selector flags. Signed-off-by: Danny Holman <dholman@gymli.org>
2025-01-12PROJECT RESTRUCTURINGDanny Holman1-0/+0
Move the entire kernel into its own directory. Create new directories for system commands, libraries and other required essentials for a complete Unix-like operating system. Signed-off-by: Danny Holman <dholman@gymli.org>
2024-05-27libk: create a subset libc for kernel useDanny Holman1-13/+7
Create a subset of the C library for use inside the kernel. Signed-off-by: Danny Holman <dholman@gymli.org>
2024-02-16kernel: make kprintf print to a ring bufferDanny Holman1-11/+23
The function kprintf should print to an internal ringbuffer instead of directly to the framebuffer. This reduces dependence on the existence of a framebuffer in the first place. Signed-off-by: Danny Holman <dholman@gymli.org>
2021-07-20io: prefix a 'k' to print functionsDanny Holman1-3/+3
Add a 'k' prefix to the kernel versions of the printf family.
2021-01-20kernel: iterate over string with indexDanny Holman1-6/+6
Iterate over a formatted string with an index and strlen instead of using a non-const pointer. The latter method may result in unsafe memory conditions. Signed-off-by: Danny Holman <dholman@gymli.xyz>
2021-01-17kernel: implement a basic printf functionDanny Holman1-0/+72
Implement a basic printf function using primitives from the TTY library. Signed-off-by: Danny Holman <dholman@gymli.xyz>