News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Checking TLB

Started by gyiakoumis, February 09, 2005, 11:44:29 AM

Previous topic - Next topic

gyiakoumis

Hi!I am trying to check Translation Lookaside Buffer.I have activated paging and i can't see any hit.Is there any extra bit to activate TLB,or something new for Pentium4(this methodology is from Pentium manual)??Here is the code i am using for searching...

       mov ebx,3  ; data TLB and read
next:mov eax,ebx
       mov ecx,08h ; TR6 <= eax
       wrmsr
       mov ecx,09h ; eax <= TR7
       rdmsr
       shr eax,4 ; eax[0] <= hit_bit
       and al,1
       jnz hit_print ; print a hit message
       cmp ebx,0fffff003 ; for all linear addresses
       jz end
       add ebx,1000h
       jmp next


Thanx!!!