Rev 2425 | Rev 3195 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2425 | Rev 3168 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2008. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2008. 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: 2425 $ |
8 | $Revision: 3168 $ |
9 | 9 | ||
10 | 10 | ||
Line 119... | Line 119... | ||
119 | stosd |
119 | stosd |
120 | add eax, 0x1000 |
120 | add eax, 0x1000 |
121 | dec ecx |
121 | dec ecx |
122 | jnz .map_kernel_tabs |
122 | jnz .map_kernel_tabs |
Line 123... | Line 123... | ||
123 | 123 | ||
124 | ; map pagetables to linear space |
124 | ; map pagetables to linear space! |
Line 125... | Line 125... | ||
125 | mov dword [sys_pgdir-OS_BASE+(page_tabs shr 20)], sys_pgdir+PG_SW-OS_BASE |
125 | mov dword [sys_pgdir-OS_BASE+(page_tabs shr 20)], sys_pgdir+PG_SW-OS_BASE |
126 | 126 | ||
127 | mov edi, (sys_pgdir-OS_BASE) |
127 | mov edi, (sys_pgdir-OS_BASE) |
Line 147... | Line 147... | ||
147 | sub edx, ecx |
147 | sub edx, ecx |
148 | mov [pg_data.pages_free-OS_BASE], edx |
148 | mov [pg_data.pages_free-OS_BASE], edx |
Line 149... | Line 149... | ||
149 | 149 | ||
150 | mov edi, sys_pgmap-OS_BASE |
150 | mov edi, sys_pgmap-OS_BASE |
151 | mov ebx, ecx |
151 | mov ebx, ecx |
152 | shr ecx, 5 |
152 | shr ecx, 5 ; 32 pagebits per dw |
153 | xor eax, eax |
153 | xor eax, eax |
Line 154... | Line 154... | ||
154 | rep stosd |
154 | rep stosd |
155 | 155 |