Subversion Repositories Kolibri OS

Rev

Rev 207 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 207 Rev 211
Line 279... Line 279...
279
endp
279
endp
280
 
280
 
Line 281... Line 281...
281
align 4
281
align 4
282
proc init_LFB
282
proc init_LFB
283
 
-
 
284
           cmp dword [LFBAddress], -1
283
           cmp dword [LFBAddress], -1
285
           jne @f
284
           jne @f
286
 
-
 
287
           mov [0x2f0000+0x901c],byte 2
285
           mov [0x2f0000+0x901c],byte 2
288
           stdcall kernel_alloc, 0x280000
286
           stdcall kernel_alloc, 0x280000
289
           mov [LFBAddress], eax
287
           mov [LFBAddress], eax
290
 
-
 
291
           ret
288
           ret
292
@@:
289
@@:
293
           test [SCR_MODE],word 0100000000000000b
290
           test [SCR_MODE],word 0100000000000000b
294
           jz @f
291
           jnz @f
-
 
292
           mov [0x2f0000+0x901c],byte 2
295
           call map_LFB
293
           ret
296
@@:
294
@@:
-
 
295
           call map_LFB
297
           ret
296
           ret
298
endp
297
endp
Line 299... Line 298...
299
 
298
 
300
align 4
299
align 4
Line 1071... Line 1070...
1071
              cpu_AMD    dd ?
1070
              cpu_AMD    dd ?
1072
           endl
1071
           endl
1073
 
1072
 
Line 1074... Line 1073...
1074
           mov [cpu_type], 0
1073
           mov [cpu_type], 0
-
 
1074
           xor eax, eax
-
 
1075
           mov [cpu_caps], eax
-
 
1076
           mov [cpu_caps+4], eax
Line 1075... Line 1077...
1075
 
1077
 
1076
           pushfd
1078
           pushfd
1077
           pop eax
1079
           pop eax
1078
           mov ecx, eax
1080
           mov ecx, eax
Line 1161... Line 1163...
1161
 
1163
 
Line 1162... Line 1164...
1162
           cmp [0x2f0000+0x901c],byte 2
1164
           cmp [0x2f0000+0x901c],byte 2
1163
           je  .exit
1165
           je  .exit
Line -... Line 1166...
-
 
1166
 
-
 
1167
           bt [cpu_caps], CAPS_MTRR
-
 
1168
           jnc .exit
1164
 
1169
 
1165
           mov eax, cr0
1170
           mov eax, cr0
1166
           or eax, 0x60000000   ;disable caching
1171
           or eax, 0x60000000   ;disable caching
1167
           mov cr0, eax
1172
           mov cr0, eax