mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-03 22:01:55 +03:00
70 lines
1.4 KiB
NASM
70 lines
1.4 KiB
NASM
|
|
||
|
format MS COFF
|
||
|
|
||
|
|
||
|
include '../macros.inc'
|
||
|
|
||
|
$Revision: 849 $
|
||
|
|
||
|
__REV__ = __REV
|
||
|
|
||
|
include "../proc32.inc"
|
||
|
include "../kglobals.inc"
|
||
|
include "../lang.inc"
|
||
|
|
||
|
public _enter_bootscreen
|
||
|
public _leave_bootscreen
|
||
|
|
||
|
public _bx_from_load
|
||
|
|
||
|
extrn __setvars
|
||
|
|
||
|
section '.boot' code readable align 16
|
||
|
|
||
|
|
||
|
_enter_bootscreen:
|
||
|
|
||
|
org 0
|
||
|
|
||
|
use16
|
||
|
mov eax, cr0
|
||
|
and eax, not 0x80000001
|
||
|
mov cr0, eax
|
||
|
jmp far 0x1000:start_of_code
|
||
|
|
||
|
version db 'Kolibri OS version 0.7.1.0 ',13,10,13,10,0
|
||
|
|
||
|
include "bootstr.inc" ; language-independent boot messages
|
||
|
include "preboot.inc"
|
||
|
|
||
|
if lang eq en
|
||
|
include "booteng.inc" ; english system boot messages
|
||
|
else if lang eq ru
|
||
|
include "bootru.inc" ; russian system boot messages
|
||
|
include "ru.inc" ; Russian font
|
||
|
else if lang eq et
|
||
|
include "bootet.inc" ; estonian system boot messages
|
||
|
include "et.inc" ; Estonian font
|
||
|
else
|
||
|
include "bootge.inc" ; german system boot messages
|
||
|
end if
|
||
|
|
||
|
include "../data16.inc"
|
||
|
|
||
|
include "bootcode.inc" ; 16 bit system boot code
|
||
|
include "../bus/pci/pci16.inc"
|
||
|
include "../detect/biosdisk.inc"
|
||
|
|
||
|
;include "boot/shutdown.inc" ; shutdown or restart
|
||
|
|
||
|
cli
|
||
|
|
||
|
mov eax, cr0
|
||
|
or eax, 0x80000001
|
||
|
mov cr0, eax
|
||
|
|
||
|
jmp pword 0x08:__setvars
|
||
|
|
||
|
align 4
|
||
|
_leave_bootscreen:
|