Last summer I got inspired by this article and stumbling on the intel processor manuals (http://www.intel.com/products/processor/manuals), which I kept on reading for a few weeks and then I started hacking with my own hobby OS project.
First I created an all-assembly boot sector mini-kernel that booted into 64-bit long mode and then did a small multitasking test case , first co-operatively and then pre-emptively using timer interrupts.
Then I started over, this time with C and using a proper multiboot bootloader like Grub. I hacked with it for a while but my x86_64-specific code and kernel code were all over the place and it needed a reorganization.
It doesn't do a whole lot, but it's a solid base I intend to continue when I have some time for kernel hacking. I'm sorry there's nothing in the README-file, I should at least add instructions for building the required cross-compiler (for TARGET x86_64-pc-elf), building (requires CMAKE_TOOLCHAIN_FILE for cross-compiling) and running with qemu and debugging with gdb.
If someone actually read this far and got inspired from the osdev articles, like I did, why not take a look at my DanjerOS project.
Last summer I got inspired by this article and stumbling on the intel processor manuals (http://www.intel.com/products/processor/manuals), which I kept on reading for a few weeks and then I started hacking with my own hobby OS project.
First I created an all-assembly boot sector mini-kernel that booted into 64-bit long mode and then did a small multitasking test case , first co-operatively and then pre-emptively using timer interrupts.
Then I started over, this time with C and using a proper multiboot bootloader like Grub. I hacked with it for a while but my x86_64-specific code and kernel code were all over the place and it needed a reorganization.
So, recently I reorganized my code, added a CMake-based build system and put it in a Git repo, here: http://github.com/rikusalminen/danjeros
It doesn't do a whole lot, but it's a solid base I intend to continue when I have some time for kernel hacking. I'm sorry there's nothing in the README-file, I should at least add instructions for building the required cross-compiler (for TARGET x86_64-pc-elf), building (requires CMAKE_TOOLCHAIN_FILE for cross-compiling) and running with qemu and debugging with gdb.
If someone actually read this far and got inspired from the osdev articles, like I did, why not take a look at my DanjerOS project.