Subversion Repositories Kolibri OS

Rev

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

Rev 843 Rev 846
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: 843 $
8
$Revision: 846 $
9
 
9
 
10
 
10
 
Line 1071... Line 1071...
1071
           xor edx, edx
1071
           xor edx, edx
1072
           xor eax, eax
1072
           xor eax, eax
1073
           mov ecx, 0x2FF
1073
           mov ecx, 0x2FF
1074
           wrmsr                ;disable all MTRR
1074
           wrmsr                ;disable all MTRR
Line 1075... Line 1075...
1075
 
1075
 
1076
           mov eax, [MEM_AMOUNT]
1076
           mov eax, [_mem_amount]
1077
; round eax up to next power of 2
1077
; round eax up to next power of 2
1078
           dec eax
1078
           dec eax
1079
           bsr ecx, eax
1079
           bsr ecx, eax
1080
           mov eax, 2
1080
           mov eax, 2