Subversion Repositories Kolibri OS

Rev

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

Rev 9249 Rev 9958
Line 1... Line 1...
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                                      ;;
2
;;                                                              ;;
-
 
3
;; Copyright (C) KolibriOS team 2004-2024. All rights reserved. ;;
3
;;                  16 BIT ENTRY FROM BOOTSECTOR                        ;;
4
;; Distributed under terms of the GNU General Public License    ;;
4
;;                                                                      ;;
5
;;                                                              ;;
5
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 6... Line 7...
6
 
7
 
7
include 'macros.inc'
8
$Revision$
8
include 'struct.inc'
9
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
9
include 'lang.inc'
10
;;                                                              ;;
10
include 'encoding.inc'
11
;;                  16 BIT ENTRY FROM BOOTSECTOR                ;;
-
 
12
;;                                                              ;;
Line 11... Line 13...
11
include 'const.inc'
13
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
12
 
14
 
13
os_code = code_l - tmp_gdt
15
os_code = code_l - tmp_gdt
14
if defined pretest_build
16
if defined pretest_build
15
  PREBOOT_TIMEOUT = 0 ; seconds
17
  PREBOOT_TIMEOUT = 0 ; seconds
16
else
18
else
Line 17... Line 19...
17
  PREBOOT_TIMEOUT = 5
19
  PREBOOT_TIMEOUT = 5
-
 
20
end if
18
end if
21
 
19
 
22
use16
20
use16
-
 
21
                  org   0x0
-
 
22
        jmp     start_of_code
23
org 0
23
 
-
 
24
if lang eq sp
24
        ; struct kernel_header
25
include "kernelsp.inc"  ; spanish kernel messages
-
 
26
else if lang eq et
25
        jmp     start_of_code   ; jump
27
version db    'Kolibri OS  versioon 0.7.7.0+    ',13,10,13,10,0
-
 
Line 28... Line 26...
28
else
26
        db      'KolibriOS '    ; signature
29
version db    'Kolibri OS  version 0.7.7.0+     ',13,10,13,10,0
27
        db      'v0.7.7.0+     ',13,10,13,10,0  ; version
Line 30... Line 28...
30
end if
28
        dd      B32-KERNEL_BASE ; offset of the kernel's 32-bit entry point
Line 98... Line 96...
98
 
96
 
99
align 8
97
align 8
Line 100... Line 98...
100
tmp_gdt:
98
tmp_gdt:
101
 
99
 
102
        dw     23
100
        dw     23
103
        dd     tmp_gdt+0x10000
101
        dd     tmp_gdt+KERNEL_BASE
104
        dw     0
102
        dw     0
105
code_l:
103
code_l:
106
        dw     0xffff
104
        dw     0xffff
Line 116... Line 114...
116
        db     0x00
114
        db     0x00
Line 117... Line 115...
117
 
115
 
Line 118... Line 116...
118
include "data16.inc"
116
include "data16.inc"
119
 
117
 
120
if ~ lang eq sp
118
if ~ lang eq sp
121
diff16 "end of bootcode",0,$+0x10000
-
 
122
end if
-
 
123
 
-
 
124
use32
-
 
125
org $+0x10000
-
 
126
 
-