Rev 497 | Rev 501 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 497 | Rev 498 | ||
---|---|---|---|
Line 52... | Line 52... | ||
52 | ;; |
52 | ;; |
53 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
53 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 54... | Line 54... | ||
54 | 54 | ||
Line 55... | Line 55... | ||
55 | include 'macros.inc' |
55 | include 'macros.inc' |
Line 56... | Line 56... | ||
56 | 56 | ||
57 | $Revision: 497 $ |
57 | $Revision: 498 $ |
58 | 58 | ||
Line 168... | Line 168... | ||
168 | or eax, ecx |
168 | or eax, ecx |
169 | and eax, 10011111b *65536*256 + 0xffffff ; caching enabled |
169 | and eax, 10011111b *65536*256 + 0xffffff ; caching enabled |
170 | mov cr0, eax |
170 | mov cr0, eax |
171 | jmp pword os_code:B32 ; jmp to enable 32 bit mode |
171 | jmp pword os_code:B32 ; jmp to enable 32 bit mode |
Line 172... | Line -... | ||
172 | - | ||
173 | include "boot/shutdown.inc" ; shutdown or restart |
- | |
174 | 172 | ||
175 | align 8 |
173 | align 8 |
Line 176... | Line 174... | ||
176 | tmp_gdt: |
174 | tmp_gdt: |
177 | 175 | ||
Line 251... | Line 249... | ||
251 | mov cr0,eax |
249 | mov cr0,eax |
Line 252... | Line 250... | ||
252 | 250 | ||
253 | lgdt [gdts] |
251 | lgdt [gdts] |
Line -... | Line 252... | ||
- | 252 | jmp pword os_code:high_code |
|
- | 253 | ||
- | 254 | ||
- | 255 | use16 |
|
- | 256 | org $-0x10000 |
|
- | 257 | include "boot/shutdown.inc" ; shutdown or restart |
|
- | 258 | org $+0x10000 |
|
254 | jmp pword os_code:high_code |
259 | use32 |
255 | 260 | ||
256 | __DEBUG__ fix 1 |
261 | __DEBUG__ fix 1 |
Line 257... | Line 262... | ||
257 | __DEBUG_LEVEL__ fix 1 |
262 | __DEBUG_LEVEL__ fix 1 |
Line 540... | Line 545... | ||
540 | cmp ax,'r1' ; åñëè ñðàì äèñê - òî íå ãðóçèòü áèáëèîòåêè |
545 | cmp ax,'r1' ; åñëè ñðàì äèñê - òî íå ãðóçèòü áèáëèîòåêè |
541 | je no_lib_load |
546 | je no_lib_load |
542 | ; LOADING LIBRARES |
547 | ; LOADING LIBRARES |
543 | stdcall dll.Load,@IMPORT ; SPraid - çàãðóçêà ôóíêöèîíàëà (ïîêà ÷òî èíè ôàéë) |
548 | stdcall dll.Load,@IMPORT ; SPraid - çàãðóçêà ôóíêöèîíàëà (ïîêà ÷òî èíè ôàéë) |
544 | call load_conf_file ; prepare configuration file |
549 | call load_conf_file ; prepare configuration file |
545 | call set_kentel_conf ; configure devices and gui |
550 | call set_kernel_conf ; configure devices and gui |
546 | no_lib_load: |
551 | no_lib_load: |
Line 547... | Line 552... | ||
547 | 552 | ||
Line 548... | Line 553... | ||
548 | ; LOAD FONTS I and II |
553 | ; LOAD FONTS I and II |