I am trying to disable the internal and external memory cache of my CPU, my configuration is above: -DELL Precision WorkStation -Intel Core 2 Duo E6550 2.33 GHz -Ubuntu 8.10
I've tried to disable it through BIOS, but it apears that DELL computers doesn't let users to access cache memory, I found then another way, it is to disable cache programmaticaly, Intel Architecture manual A.3 indicates that cr0 register can be set to disable cache by setting bit 30, i wrote the above code then :
invd
mov eax,cr0
mov eax,40000000H ;set bit 30
mov cr0,eax
The program compiled successfully, but when I try to run exe file,it Seg Faults (i'm using NASM)
Anyone can help me?