Vitaliy Kiselev
Carbonite Member
Looking at battery related routines (hardware errors processing) I am just amazed.
Each error state have corrresponding code stored in big structure in special place.
But nothing set this code directly.
Instead whole structure is overwritten constantly (infinite loop) from different place.
Are you still with me?
But it is not all the fun.
On lower level all error codes are also stored in large flags array.
So code is sometimes referred as code and sometimes as flag state .
Really weird.
Each error state have corrresponding code stored in big structure in special place.
But nothing set this code directly.
Instead whole structure is overwritten constantly (infinite loop) from different place.
Are you still with me?
But it is not all the fun.
On lower level all error codes are also stored in large flags array.
So code is sometimes referred as code and sometimes as flag state .
Really weird.