summaryrefslogtreecommitdiff
path: root/include/kernel
AgeCommit message (Collapse)Author
2024-02-16include: kernel: move list.h to a data struct directoryDanny Holman
Move list.h into a designated directory for data structure definitions. Signed-off-by: Danny Holman <dholman@gymli.org>
2023-11-26kernel: list: add a linked-list implementationDanny Holman
Add a linked-list implementation using the kmalloc system. Signed-off-by: Danny Holman <dholman@gymli.org>
2023-11-26kernel: mem: add a simple kmalloc implementationDanny Holman
Add a simple implementation of kmalloc. This system only works on x86-based processors at the time of commit. Signed-off-by: Danny Holman <dholman@gymli.org>
2023-11-26arch: i386: serial.c: make serial_writestring staticDanny Holman
Make the function serial_writestring static. This is an optimization specifically for small functions such as this one. Signed-off-by: Danny Holman <dholman@gymli.org>
2022-03-22arch: i386: make serial_writestring inlineDanny Holman
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>
2021-07-20io: prefix a 'k' to print functionsDanny Holman
Add a 'k' prefix to the kernel versions of the printf family.
2021-01-20serial: add serial_writestring as a functionDanny Holman
Add a function in the serial interface that writes an entire string to the serial line. Signed-off-by: Danny Holman <dholman@gymli.xyz>
2021-01-20serial: don't declare serial_init as staticDanny Holman
The function serial_init should not be declared as static. This function could change under a different architecture and should be defined with the target architecture. Signed-off-by: Danny Holman <dholman@gymli.xyz>
2021-01-20i386: add serial port supportDanny Holman
Add support for serial communication in the i386 architecture. Signed-off-by: Danny Holman <dholman@gymli.xyz>
2021-01-20include: append "_H" to include guardsDanny Holman
Add a "_H" to the end of the include guards in tty.h. Signed-off-by: Danny Holman <dholman@gymli.xyz>
2021-01-17include: remove an include to the tty layer in ioDanny Holman
Remove the include to the tty layer in io.h. Signed-off-by: Danny Holman <dholman@gymli.xyz>
2021-01-17kernel: implement a basic printf functionDanny Holman
Implement a basic printf function using primitives from the TTY library. Signed-off-by: Danny Holman <dholman@gymli.xyz>
2021-01-17include: create basic C library functionsDanny Holman
Create the basic C library functions for use inside the kernel. Signed-off-by: Danny Holman <dholman@gymli.xyz>