c - how can I write operating system without going deep into device drivers -
i writing operating system educational purpose , maybe productive system in future , want start scratch (i did) , got upset working hardware, writing simple vga text mode driver nightmare. problem working hardware difficult debug , hardware closed source , working alone (too cope available hardware alone)my operating system runs on x86 , maybe x86_64 architecture in future asking if there way can avoiding working directly hardware , hal target independent provide interface communicating wide range of available hardware if such thing available should in c or assembly (but not c++) because want os written in pure c , assembly(for performance favor)
my first reaction, , judging comments, not mine, "what left then?". not true.
beside kind of hardware abstractions device drivers, there other areas, quote items wikipedia article:
- process management
- interrupt handling
- memory management
- file systems
- networking
- security
- other / o
- user interface
the problem these need interact device drivers intimately. need partner working on them, or try use existing.
e.g. if take netbsd distribution , keep device drivers, keep boot system , cut kernel minimum, think still end unix-like.
also interesting similiar cut down of free operating system embedded world, e.g. freertos.
you should have @ plan 9 can seen moderate departure unix. note however:
other factors contributed low adoption of plan 9 include lack of commercial backup, low number of end-user applications, , lack of device drivers.
and effort dozen world class computer scientists.
Comments
Post a Comment