summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2018-06-24Modified makefiles to use the more appropriate variable $(MAKE) whenJake Mannens
invoking the tool recursively. Disabled GCC's position-independent-code generation in makefiles. Modified makefile for kernel/usrbin so that it now compiles and links C code into the userspace test. Created errno.h and populated it with standard error definitions. Replaced the va_list based system call handlers with a system call table defined in the header kernel/sys.h. NOTE: This header is included in kmain.c and should ONLY be included there! Do NOT include this header in sys.c. Rather than fetching the user's stack pointer and using it to initialize a va_list, parameters are now passed to the call handlers via the general purpose registers EAX, EBX, ECX and EDX where EAX contains the requested call number and conveys the return value. Setup macros in unistd.h to aid to making system calls from userspace. Implemented two basic system calls; sys_print and sys_dummy. The former takes a single char* argument and displays it on screen whilst the latter is used to populate otherwise empty entries of the system call table. sys_dummy returns the error ENOSYS whenever it is called.
2018-06-20Added a very basic types.h header file that defines NULL, size_t andJake Mannens
time_t. Moved the kernel's loading point down to address 0 in conventional memory and updated linker scripts accordingly. Began to experiment with loading a binary blob into extended memory (0x100000), switching to userspace mode, and executing it.
2018-06-19Added foundation code to initialize the PIT and create a 10ms jiffiesJake Mannens
counter.
2018-06-17Cleaned up console I/O functions in con.c and con.h respectively.Jake Mannens
2018-06-16Initial commitJake Mannens