Quote:
Originally Posted by bushlyamax
I'm writing kernel module for searching main memory faults. These control is realized by checking Crc32 checksums of code segments. So I use such algorithm:
As I think, code segments shouldn't change because of there is no overlays in kernel or program realization.
Can somebody explain me the reason of these fact?
|
It's been over 10 years that I programmed in assembly so I may be totally wrong here...
In Real Mode, ASM is fun. In Protected Mode it is less fun.
Linux runs in PM so, AFAIK, there are no Code Segments anymore. Just descriptors and lookup tables. The value you load into the CS register is used as an index in the memory management controller register (of which I forgot the name and am too lazy to look it up in my AMD K6 programming manual).