summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* i386: add support for newlinesDanny Holman2021-01-251-0/+7
| | | | | | Add support for the newline character in the TTY layer. Signed-off-by: Danny Holman <dholman@gymli.xyz>
* x86: reorganize the i386 directoryDanny Holman2021-01-2410-11/+84
| | | | | | Add structure to the internals of the x86 directory. Signed-off-by: Danny Holman <dholman@gymli.xyz>
* serial: add serial_writestring as a functionDanny Holman2021-01-203-0/+9
| | | | | | | Add a function in the serial interface that writes an entire string to the serial line. Signed-off-by: Danny Holman <dholman@gymli.xyz>
* kernel: iterate over string with indexDanny Holman2021-01-201-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>
* kernel: maintain const on stringsDanny Holman2021-01-201-2/+2
| | | | | | Keep const pointers const when casting from void to char. Signed-off-by: Danny Holman <dholman@gymli.xyz>
* serial: don't declare serial_init as staticDanny Holman2021-01-203-2/+3
| | | | | | | | 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>
* i386: add serial port supportDanny Holman2021-01-205-1/+67
| | | | | | Add support for serial communication in the i386 architecture. Signed-off-by: Danny Holman <dholman@gymli.xyz>
* include: append "_H" to include guardsDanny Holman2021-01-201-2/+2
| | | | | | Add a "_H" to the end of the include guards in tty.h. Signed-off-by: Danny Holman <dholman@gymli.xyz>
* kernel: finish implementing string functionsDanny Holman2021-01-181-4/+38
| | | | | | Finish implementing the functions from string.h in string.c. Signed-off-by: Danny Holman <dholman@gymli.xyz>
* include: remove an include to the tty layer in ioDanny Holman2021-01-171-1/+0
| | | | | | Remove the include to the tty layer in io.h. Signed-off-by: Danny Holman <dholman@gymli.xyz>
* kernel: implement a basic printf functionDanny Holman2021-01-172-0/+82
| | | | | | Implement a basic printf function using primitives from the TTY library. Signed-off-by: Danny Holman <dholman@gymli.xyz>
* kernel: add main initialization functionsDanny Holman2021-01-171-0/+7
| | | | | | Add the main initialiazation functions within the main kernel directory. Signed-off-by: Danny Holman <dholman@gymli.xyz>
* kernel: add string.h implementationsDanny Holman2021-01-171-0/+24
| | | | | | Add implementations for functions declared in string.h. Signed-off-by: Danny Holman <dholman@gymli.xyz>
* arch: i386: add support for x86 processorsDanny Holman2021-01-175-0/+142
| | | | | | Add support for 32-bit x86 processors, i.e. the 80386 and above. Signed-off-by: Danny Holman <dholman@gymli.xyz>
* include: create basic C library functionsDanny Holman2021-01-172-0/+23
| | | | | | Create the basic C library functions for use inside the kernel. Signed-off-by: Danny Holman <dholman@gymli.xyz>
* Initial commitDanny Holman2021-01-175-0/+439
Signed-off-by: Danny Holman <dholman@gymli.xyz>