forked from PoliEcho-holding-org/kern
Minor documentation change
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
@@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user