Subversion Repositories Kolibri OS

Rev

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

Rev 819 Rev 821
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
4
;; Distributed under terms of the GNU General Public License    ;;
4
;; Distributed under terms of the GNU General Public License    ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 819 $
8
$Revision: 821 $
9
 
9
 
Line 1157... Line 1157...
1157
           xor edx, edx
1157
           xor edx, edx
1158
           xor eax, eax
1158
           xor eax, eax
1159
           mov ecx, 0x2FF
1159
           mov ecx, 0x2FF
1160
           wrmsr                ;disable all MTRR
1160
           wrmsr                ;disable all MTRR
Line -... Line 1161...
-
 
1161
 
-
 
1162
           mov eax, [MEM_AMOUNT]
-
 
1163
; round eax up to next power of 2
-
 
1164
           dec eax
-
 
1165
           bsr ecx, eax
-
 
1166
           mov eax, 2
1161
 
1167
           shl eax, cl
1162
           stdcall set_mtrr, dword 0,dword 0,[MEM_AMOUNT],MEM_WB
1168
           stdcall set_mtrr, edx,edx,eax,MEM_WB
1163
           stdcall set_mtrr, dword 1,[LFBAddress],[LFBSize],MEM_WC
1169
           stdcall set_mtrr, 1,[LFBAddress],[LFBSize],MEM_WC
1164
           xor edx, edx
1170
           xor edx, edx
1165
           xor eax, eax
1171
           xor eax, eax
1166
           mov ecx, 0x204
1172
           mov ecx, 0x204
1167
           mov ebx, 6
1173
           mov ebx, 6