Subversion Repositories Kolibri OS

Rev

Rev 7136 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7136 Rev 9950
Line 16... Line 16...
16
; one test has 8, another test has 10
16
; one test has 8, another test has 10
17
; this is the maximal value for storing/copying, real value is in MTRRCAP
17
; this is the maximal value for storing/copying, real value is in MTRRCAP
18
MAX_VARIABLE_MTRR = 10
18
MAX_VARIABLE_MTRR = 10
Line 19... Line 19...
19
 
19
 
20
start:
20
start:
21
; Copy test inputs, run init_mtrr, compare with test outputs. Repeat.
21
; Copy test inputs, run init_pat_mtrr, compare with test outputs. Repeat.
22
        mov     esi, test1_in_data
22
        mov     esi, test1_in_data
23
        mov     edi, mtrrdata
23
        mov     edi, mtrrdata
24
        mov     ecx, mtrrdata_size / 4
24
        mov     ecx, mtrrdata_size / 4
25
        rep movsd
25
        rep movsd
26
        call    init_mtrr
26
        call    init_pat_mtrr
27
        mov     esi, test1_out_data
27
        mov     esi, test1_out_data
28
        mov     edi, mtrrdata
28
        mov     edi, mtrrdata
29
        mov     ecx, mtrrdata_size / 4
29
        mov     ecx, mtrrdata_size / 4
30
        repz cmpsd
30
        repz cmpsd
31
        jnz     .fail
31
        jnz     .fail
32
        mov     esi, test2_in_data
32
        mov     esi, test2_in_data
33
        mov     edi, mtrrdata
33
        mov     edi, mtrrdata
34
        mov     ecx, mtrrdata_size / 4
34
        mov     ecx, mtrrdata_size / 4
35
        rep movsd
35
        rep movsd
36
        call    init_mtrr
36
        call    init_pat_mtrr
37
        mov     esi, test2_out_data
37
        mov     esi, test2_out_data
38
        mov     edi, mtrrdata
38
        mov     edi, mtrrdata
39
        mov     ecx, mtrrdata_size / 4
39
        mov     ecx, mtrrdata_size / 4
40
        repz cmpsd
40
        repz cmpsd