Look, I can't find old list of tutorials and the ones I remember I keep getting 404s on. Here is one which is mostly about writing it in assembler:
http://www.mohanraj.info/josh.jsp
I find it amusing that most of the stuff I'm finding is based on Linux, since Linux itself was conceived and written on the Minix newsgroup and got input from Andy Tannenbaum who wrote Minix. What is Minix? It's a UNIX-based OS intended to teach you about OSes and how to write them -- Tannenbaum was doing his job by consulting on the kernel.
Unfortunately, Computers have gotten much more complicated since those days. Tannenbaum called the Linux kernel bloated and that is not something I see noted in the pages I've been turning up. This is a definite throwback to the old days and another assembly language tutorial:
http://www.emu8086.com/assembly_language_tutorial_assembler_reference/asm_tutorial_11.html
In sources I have a page seven of a tutorial about writing an os kernel in Java, of all languages. Pages 1 - 6 have gone 404.
I'm sorry I can't be more helpful. Hope this helps.