Rev 748 | Rev 2288 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 748 | Rev 1962 | ||
---|---|---|---|
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 14... | Line 14... | ||
14 | $Revision: 748 $ |
14 | $Revision: 1962 $ |
15 | 15 | ||
Line 96... | Line 96... | ||
96 | jnz no_apm_off |
96 | jnz no_apm_off |
97 | call APM_PowerOff |
97 | call APM_PowerOff |
98 | jmp $ |
98 | jmp $ |
99 | no_apm_off: |
99 | no_apm_off: |
Line -... | Line 100... | ||
- | 100 | ||
100 | 101 | if ~ defined extended_primary_loader ; kernel restarting is not supported |
|
101 | dec ax ; 3 = reboot |
102 | dec ax ; 3 = reboot |
- | 103 | jnz restart_kernel ; 4 = restart kernel |
|
102 | jnz restart_kernel ; 4 = restart kernel |
104 | end if |
103 | push 0x40 |
105 | push 0x40 |
104 | pop ds |
106 | pop ds |
105 | mov word[0x0072],0x1234 |
107 | mov word[0x0072],0x1234 |
Line 148... | Line 150... | ||
148 | mov cx,3 |
150 | mov cx,3 |
149 | int 0x15 |
151 | int 0x15 |
150 | ;!!!!!!!!!!!!!!!!!!!!!!!! |
152 | ;!!!!!!!!!!!!!!!!!!!!!!!! |
151 | ret |
153 | ret |
Line -... | Line 154... | ||
- | 154 | ||
152 | 155 | if ~ defined extended_primary_loader |
|
Line 153... | Line 156... | ||
153 | restart_kernel: |
156 | restart_kernel: |
154 | 157 | ||
155 | mov ax,0x0003 ; set text mode for screen |
158 | mov ax,0x0003 ; set text mode for screen |
Line 203... | Line 206... | ||
203 | push 0x1000 |
206 | push 0x1000 |
204 | pop ds |
207 | pop ds |
205 | mov si, kernel_restart_bootblock |
208 | mov si, kernel_restart_bootblock |
206 | mov ax, 'KL' |
209 | mov ax, 'KL' |
207 | jmp 0x1000:0000 |
210 | jmp 0x1000:0000 |
208 | 211 | end if |