Hi all,
I recently extended Dominik's nimkernel a little bit. Some addons are gdt/idt-init, keyboard and PIT. Also qemu's debug-console is spawned and can be used. I used it as a testbed for the 'os:standalone' flag and for some lowlevel experiments with nim and qemu.
forked repo is here: https://github.com/mikra01/nimkernel
@dom96 please give me a hint if you like a PR.
enjoy.
Nice!
The aim of nimkernel is to provide a simple base for people who want to build a kernel, I think all these things you've added are going a bit beyond that. It's much easier for newbies to understand something like what nimkernel is now than all these extra bits which they might not be aware are necessary.
I will accept PRs to fix any compilation problems as I'm sure what's in the repo now isn't compatible with latest Nim. (Also instructions for compiling on macOS would be nice)
Ok thanks for your feedback. Your template is indeed a very good starter. For me it was an experiment to explore some environmental limitations.
I thought about your concerns. I think to avoid confusion I would like to move my fork into an own project with a disclaimer to your original work if you don't mind.
To get your original project compiled under 0.19.4/0.19.9 the main thing actually is to patch the local compiler environment as described in https://github.com/nim-lang/Nim/issues/10978 (besides of some slight source adjustments)