Subversion Repositories Kolibri OS

Rev

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

Rev 513 Rev 519
Line 1... Line 1...
1
$Revision: 513 $
1
$Revision: 519 $
Line 2... Line 2...
2
 
2
 
3
MEM_WB     equ 6               ;write-back memory
3
MEM_WB     equ 6               ;write-back memory
4
MEM_WC     equ 1               ;write combined memory
4
MEM_WC     equ 1               ;write combined memory
Line 69... Line 69...
69
 
69
 
70
           mov ebx, cr4
70
           mov ebx, cr4
71
           or ebx, CR4_PSE
71
           or ebx, CR4_PSE
Line 72... Line 72...
72
           mov eax, PG_LARGE+PG_SW
72
           mov eax, PG_LARGE+PG_SW
73
 
73
 
Line 74... Line 74...
74
           bt [cpu_caps-OS_BASE], CAPS_PGE
74
;           bt [cpu_caps-OS_BASE], CAPS_PGE
75
           jnc @F
75
;           jnc @F
-
 
76
 
76
 
77
;           or eax, PG_GLOBAL
77
           or eax, PG_GLOBAL
78
;           or ebx, CR4_PGE
78
           or ebx, CR4_PGE
79
;
Line 79... Line 80...
79
@@:
80
;@@:
80
           mov cr4, ebx
81
           mov cr4, ebx
Line 120... Line 121...
120
 
121
 
Line 121... Line 122...
121
           mov dword [sys_pgdir-OS_BASE+(page_tabs shr 20)], sys_pgdir+PG_SW-OS_BASE
122
           mov dword [sys_pgdir-OS_BASE+(page_tabs shr 20)], sys_pgdir+PG_SW-OS_BASE
122
 
123
 
123
           mov edi, (sys_pgdir-OS_BASE)
124
           mov edi, (sys_pgdir-OS_BASE)
124
           lea esi, [edi+(OS_BASE shr 20)]
-
 
125
           lodsd
-
 
126
           and eax, not PG_GLOBAL
-
 
127
           stosd
-
 
128
           lodsd
-
 
129
           and eax, not PG_GLOBAL
125
           lea esi, [edi+(OS_BASE shr 20)]
130
           stosd
-
 
131
           lodsd
-
 
132
           and eax, not PG_GLOBAL
126
           movsd
133
           stosd
127
           movsd
Line 134... Line 128...
134
           ret
128
           ret
135
endp
129
endp