Rev 2455 | Rev 5130 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2455 | Rev 5032 | ||
---|---|---|---|
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: 5032 $ |
|
- | 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: 2455 $ |
- | |
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: |