Just download the source code for Linux and modify it a bit to suit your needs.