Subversion Repositories Kolibri OS

Rev

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

Rev 2465 Rev 5201
Line 9... Line 9...
9
;;  See file COPYING for details.                               ;;
9
;;  See file COPYING for details.                               ;;
10
;;  Copyright 2003 Ville Turjanmaa                              ;;
10
;;  Copyright 2003 Ville Turjanmaa                              ;;
11
;;                                                              ;;
11
;;                                                              ;;
12
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
12
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 13... Line 13...
13
 
13
 
Line -... Line 14...
-
 
14
$Revision: 5201 $
-
 
15
 
-
 
16
use32
-
 
17
become_real:
-
 
18
        cli
-
 
19
        lgdt    [realmode_gdt-OS_BASE]
-
 
20
        jmp     8:@f
-
 
21
use16
-
 
22
@@:
-
 
23
        mov     ax, 10h
-
 
24
        mov     ds, ax
-
 
25
        mov     es, ax
-
 
26
        mov     fs, ax
-
 
27
        mov     gs, ax
-
 
28
        mov     ss, ax
-
 
29
        mov     eax, cr0
-
 
30
        and     eax, not 80000001h
Line 14... Line -...
14
$Revision: 2465 $
-
 
15
 
31
        mov     cr0, eax
Line 16... Line 32...
16
 
32
        jmp     0x1000:pr_mode_exit
17
align 4
33
 
18
pr_mode_exit:
34
pr_mode_exit:
Line 164... Line 180...
164
 
180
 
165
        push    ds
181
        push    ds
166
        pop     es
182
        pop     es
167
        mov     cx, 0x8000
183
        mov     cx, 0x8000
168
        push    cx
184
        push    cx
169
        push    0x7000
185
        push    0x7100
170
        pop     ds
186
        pop     ds
171
        xor     si, si
187
        xor     si, si
172
        xor     di, di
188
        xor     di, di
173
        rep movsw
189
        rep movsw