Yea.
Step one. Remove 99.999% of the features of today's modern OSs.
Step two. Limit device support to a small number of devices that con be supported with simple drivers developed in house.
Step three. Do not allow any third party drivers to be loaded.
Step four. Only allow verified and tested third party software and only give that software a very limited API to interface to the OS with.
You've now got a decent starting poing for making a solid and secure OS.
Add in some rigid design procedures and outside test and verification, and if you're reasonably efficient, you'll only spend a couple thousand dollars per line of code for something arguably solid and secure.
For more information se the D.O. 178 standards for software design used in avaition system.
Step 0.5 Install OpenBSD out of the box!
Sounds a lot like MAC OS-xxxxxx.xxxx
Wow, you've just described our DEC Alpha mainframe...