Subversion Repositories Kolibri OS

Rev

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

Rev 928 Rev 996
Line 216... Line 216...
216
           call _init_threads
216
           call _init_threads
217
 
217
 
Line 218... Line 218...
218
; SAVE & CLEAR 0-0xffff
218
; SAVE & CLEAR 0-0xffff
Line 219... Line -...
219
 
-
 
220
           cld
-
 
221
           xor esi, esi
-
 
222
           mov   edi,BOOT_VAR
-
 
223
           mov   ecx,0x10000 / 4
-
 
224
           rep   movsd
-
 
225
 
-
 
226
           xor edi, edi
-
 
227
           xor eax, eax
-
 
228
           mov   ecx,0x10000 / 4
-
 
229
           rep   stosd
-
 
230
 
-
 
231
           mov edi, 0x40000
-
 
232
           mov ecx, (0x90000-0x40000)/4
-
 
233
           rep stosd
-
 
234
 
219
 
235
           mov dword [_sys_pdbr], eax
220
           mov dword [_sys_pdbr], eax
Line 236... Line -...
236
           mov dword [_sys_pdbr+4], eax
-
 
237
 
-
 
238
           xchg bx, bx
221
           mov dword [_sys_pdbr+4], eax
239
 
222
 
Line 240... Line 223...
240
           movzx eax,word [BOOT_VAR+0x9008]  ; screen mode
223
           movzx eax,word [BOOT_VAR+0x9008]  ; screen mode
241
           mov   [scr_mode],eax
224
           mov   [scr_mode],eax
Line 254... Line 237...
254
           call @create_systhread@4
237
           call @create_systhread@4
255
 
238
 
Line 256... Line 239...
256
           mov [_current_thread], eax
239
           mov [_current_thread], eax
Line 257... Line -...
257
 
-
 
258
           xchg bx, bx
-
 
259
 
240
 
260
           mov ebx, [eax+THR.pdir]
241
           mov ebx, [eax+THR.pdir]
261
           mov ecx, cr3
242
           mov ecx, cr3
262
           cmp ebx, ecx
243
           cmp ebx, ecx
263
           je .skip
244
           je .skip