-1

I want check that CPU have support PSE. I found in Intel doc that PSE is on BIT 3 in EDX Register.

I have code for PAE:

pae:
    mov eax,1
    cpuid
    test EDX, 000000020h
    jnz is_pae
    jmp name

In Intel doc is that PAE is on BIT 6 in EDX Register. Why in code is 000000020h and what value use to check PSE.

4

1 回答 1

1

看起来您的PAE代码是错误的 - 它是 testing MSR,而不是PAE. 它应该是:

test EDX, 000000040h  ; test PAE (bit 6)

同样对于 PSE,它将是:

test EDX, 000000008h  ; test PSE (bit 3)
于 2013-10-21T09:08:51.547 回答