Why we are saying that the OS is purely hardware dependent (other than hardware peripherals like RAM/USB etc)? The word hardware independence means, the OS should run on any platform with out any underlying hardware abstraction layer like ARM/x86/xtensa/starcore etc etc.
Can you please give me the exact hardware dependencies in a simple/common OS? Meaning exactly in which are all points in the OS is accessing the hardware or depending on the platform?
Also is it possible to write a simple OS or a RTOS (using C language) with out any hardware or platform dependency(ie without any VM concept) so that it'll run on any platforms?
I would be expecting the answers from the OS kernel side and not from the peripheral side like RAM /keyboard/mouse
I will give you an example of exact hardware dependency in an OS "at context switching (context of the tasks/threads should be stored with help of underlying platform/CPU only)"
__Kanu