Rev 531 | Rev 593 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 531 | Rev 557 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | $Revision: 531 $ |
1 | $Revision: 557 $ |
2 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
3 | ;; ;; |
3 | ;; ;; |
4 | ;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; |
4 | ;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; |
5 | ;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa ;; |
5 | ;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa ;; |
6 | ;; Distributed under terms of the GNU General Public License ;; |
6 | ;; Distributed under terms of the GNU General Public License ;; |
Line 217... | Line 217... | ||
217 | mov edx, [ebx+APPDATA.io_map+4] |
217 | mov edx, [ebx+APPDATA.io_map+4] |
218 | mov dword [page_tabs+((tss._io_map_0 and -4096) shr 10)], ecx |
218 | mov dword [page_tabs+((tss._io_map_0 and -4096) shr 10)], ecx |
219 | mov dword [page_tabs+((tss._io_map_1 and -4096) shr 10)], edx |
219 | mov dword [page_tabs+((tss._io_map_1 and -4096) shr 10)], edx |
Line 220... | Line 220... | ||
220 | 220 | ||
- | 221 | mov eax, [ebx+APPDATA.dir_table] |
|
- | 222 | cmp eax, [esi+APPDATA.dir_table] |
|
221 | mov eax, [ebx+APPDATA.dir_table] |
223 | je @F |
- | 224 | mov cr3, eax |
|
222 | mov cr3, eax |
225 | @@: |
223 | mov ebx, [ebx+APPDATA.pl0_stack] |
226 | mov ebx, [ebx+APPDATA.pl0_stack] |
224 | add ebx, RING0_STACK_SIZE |
227 | add ebx, RING0_STACK_SIZE |
225 | mov [tss._esp0], ebx |
228 | mov [tss._esp0], ebx |
226 | push graph_data |
229 | mov ax, graph_data |
227 | pop gs |
230 | mov gs, ax |
228 | mov ecx, cr0 |
231 | mov ecx, cr0 |
229 | or ecx, CR0_TS ;set task switch flag |
232 | or ecx, CR0_TS ;set task switch flag |
230 | mov cr0, ecx |
233 | mov cr0, ecx |