summaryrefslogtreecommitdiff
path: root/kernel (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-01-20serial: add serial_writestring as a functionDanny Holman1-0/+1
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-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-20kernel: maintain const on stringsDanny Holman1-2/+2
Keep const pointers const when casting from void to char. Signed-off-by: Danny Holman <dholman@gymli.xyz>
2021-01-20serial: don't declare serial_init as staticDanny Holman1-0/+1
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 Holman1-1/+2
Add support for serial communication in the i386 architecture. Signed-off-by: Danny Holman <dholman@gymli.xyz>
2021-01-18kernel: finish implementing string functionsDanny Holman1-4/+38
Finish implementing the functions from string.h in string.c. 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>
2021-01-17kernel: add main initialization functionsDanny Holman1-0/+7
Add the main initialiazation functions within the main kernel directory. Signed-off-by: Danny Holman <dholman@gymli.xyz>
2021-01-17kernel: add string.h implementationsDanny Holman1-0/+24
Add implementations for functions declared in string.h. Signed-off-by: Danny Holman <dholman@gymli.xyz>