summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-07-20arch: i386: move the kernel to high memoryDanny Holman
Move the start of the kernel image to the "higher half" of memory. This also enables paging.
2021-07-20io: prefix a 'k' to print functionsDanny Holman
Add a 'k' prefix to the kernel versions of the printf family.
2021-06-04Makefile: clean up targetsDanny Holman
Clean up the Makefile to be more clear and readable. Signed-off-by: Danny Holman <dholman@gymli.xyz>
2021-03-09Makefile: include dependency filesDanny Holman
Add an include directive in the main Makefile that includes the dependency files generated by GCC. Signed-off-by: Danny Holman <dholman@gymli.xyz>
2021-03-09README: fix improper formattingDanny Holman
Fix wrong formatting in the project README file. Lists should have an empty line proceeding them, otherwise the first element is italicized. Signed-off-by: Danny Holman <dholman@gymli.xyz>
2021-03-09Makefile: fix wrong -I directive to compilerDanny Holman
Fix a bug in which the architecture specific include directories are not properly included in the main Makefile. Signed-off-by: Danny Holman <dholman@gymli.xyz>
2021-01-28README: add project README fileDanny Holman
Add a README to the root of the project. This will act as a point of information to new users/developers. Signed-off-by: Danny Holman <dholman@gymli.xyz>
2021-01-28i386: create terminal_scroll functionDanny Holman
Add support for scrolling the terminal at the end of the VGA buffer. Signed-off-by: Danny Holman <dholman@gymli.xyz>
2021-01-25i386: add support for newlinesDanny Holman
Add support for the newline character in the TTY layer. Signed-off-by: Danny Holman <dholman@gymli.xyz>
2021-01-24x86: reorganize the i386 directoryDanny Holman
Add structure to the internals of the x86 directory. Signed-off-by: Danny Holman <dholman@gymli.xyz>
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-20kernel: iterate over string with indexDanny Holman
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 Holman
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 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-18kernel: finish implementing string functionsDanny Holman
Finish implementing the functions from string.h in string.c. 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-17kernel: add main initialization functionsDanny Holman
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 Holman
Add implementations for functions declared in string.h. Signed-off-by: Danny Holman <dholman@gymli.xyz>
2021-01-17arch: i386: add support for x86 processorsDanny Holman
Add support for 32-bit x86 processors, i.e. the 80386 and above. 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>
2021-01-17Initial commitDanny Holman
Signed-off-by: Danny Holman <dholman@gymli.xyz>