Minor documentation change

This commit is contained in:
2024-05-08 09:41:07 +02:00
parent b6d1d42ed2
commit a97ac11d70
3 changed files with 15 additions and 0 deletions
+2
View File
@@ -56,6 +56,8 @@ _These images may be outdated, Idk_
- If you run kernel.bin from shell, it will clear the memory map so when you load anything it will override the kernel code - If you run kernel.bin from shell, it will clear the memory map so when you load anything it will override the kernel code
- fillCircle() in graphics.h is broken. No idea why, so no filled circles for you (i commented out the boundaryFill call in the function) - fillCircle() in graphics.h is broken. No idea why, so no filled circles for you (i commented out the boundaryFill call in the function)
- convertColor() doesn't work right, because i should be using floating point, but -mgeneral-regs-only doesn't let me :( - convertColor() doesn't work right, because i should be using floating point, but -mgeneral-regs-only doesn't let me :(
- Keyboard handler is kinda bad :/
- Not really an issue, bit QEMU's PIT is really slow and inacurate
## [Old Version](https://github.com/Tom-on64/old-kern) ## [Old Version](https://github.com/Tom-on64/old-kern)
+12
View File
@@ -0,0 +1,12 @@
=== Project Structure ===
Root contains the Makefile that is used to build kern and some documents.
It also contains these directories:
src/ - The source code of kern
include/ - C header files that can be included by the OS. include/c/ can be used by any programs, but other headers shall only be included in the kernel
build/ - This directory is created by the Makefile and contains intermediary built obj file and binaries
other/ - Things that are not nescessarly part of the OS
docs/ - Some basic documentation. Mostly for me so that i don't forget stuff
After running the Makefile and succesfully building the OS a 'kern.iso' file will be created in the root directory
+1
View File
@@ -4,6 +4,7 @@
#include <stdint.h> #include <stdint.h>
void sleep(uint32_t ms) { void sleep(uint32_t ms) {
// Call syscall 0 (eax) with 'ms' miliseconds (ebx)
__asm__ volatile ("int $0x80" : : "a"(0), "b"(ms)); __asm__ volatile ("int $0x80" : : "a"(0), "b"(ms));
} }