Commit Graph
15 Commits
Author SHA1 Message Date
Tom-on 9388457774 Made Open() syscall work (badly) 2024-08-26 14:43:12 +02:00
Tom-on 105b58a684 Some changes, syscalls use reg structs and have return values 2024-08-25 19:40:10 +02:00
Tom-on f0edcb0459 Changed header guards to include path to include file (ie. PATH_TO_EXAMPLE_H) 2024-08-16 12:00:12 +02:00
Tom-on be6b65863f Implemented custom filesystem and got it to compile. It seems that it isn't loading the 3rd stage bootloader though 2024-08-12 16:30:45 +02:00
Tom-on 9c96636436 Got the OS to boot from new disk image
- Pretty much rewrote stage1.asm
- Changed some addresses in stage2.asm and in memory/adresses.h
- Changed stage3.c to read root INode and it's dirEntries to find kernel.bin and term16n.fnt
- Made a fake ls command in kernel.c, just so it prints something
- Fixed makedisk.c to make the disk image properly
- Changed Makefile to compile makedisk.c and then run makedisk
- Added makedisk executable to .gitignore
2024-06-02 19:09:33 +02:00
Tom-on 75410d3a6c Made printf() good! 2024-05-30 10:30:39 +02:00
Tom-on 74c38342d7 Made memory/addresses.h more organised
Also didn't need to add stdio.h to any files so that's good!
2024-05-28 17:43:07 +02:00
Tom-on ff07696dc6 Continuing terminal I/O
- Made stdio.h work
- Moved printFiletable back into kernel.c
- TODO: Add stdio.h to all files that should use it (probably next commmit)
- Added some more global addresses. There's a memory layout, but i'm not using it
- Got cursor to be drawn
- Calc program now gets user input
2024-05-28 17:08:49 +02:00
Tom-on 536f6b2320 Began work on proper terminal I/O
- Chenged Puts() syscall to Write()
- Improved syscalls.h
- added a new header in terminal/terminal.h
- moved gfxMode into screen/gfxmode.h
2024-05-27 15:16:07 +02:00
Tom-on e9abfc2e4a Implemented Higher Half Kernel!
- Minor makefile chnages
- stage3.c "prekernel", sets up memory stuff and jumps to kernel
- kernel is now at 0xC0000000 - 3GB+ "higher half"
- Added some global variables in memory/addresses.h
2024-05-26 15:49:48 +02:00
Tom-on f879ca122f Made malloc() and free()! They're in header stdlib.h as syscalls 3 & 4. 2024-05-24 18:08:33 +02:00
Tom-on f009bbdac9 Started using virtual memory manager in kernel. Also changes read() function to accept a char* to write to 2024-05-24 15:47:45 +02:00
Tom-on e728571393 Finished Virtual Memory Manager!!! Paging etc. now works perfectly*
*i have no idea if it works right, but it doesn't seem to be broken
2024-05-23 20:53:15 +02:00
Tom-on 2072c8fe53 Began work in Virtual Memory Manager! 2024-05-23 17:26:56 +02:00
Tom-on 7826b9b7d4 Include file restructure!
- include/ now has subdirs
- standard C headers will be in 'include/c'. Any program can include these
- all other header shall only be used by the kernel
2024-05-07 21:01:50 +02:00