Subversion Repositories Kolibri OS

Rev

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

Rev 9950 Rev 9958
Line 1... Line 1...
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;
2
;;
3
;; Copyright (C) KolibriOS team 2004-2022. All rights reserved.
3
;; Copyright (C) KolibriOS team 2004-2024. All rights reserved.
4
;; Kernel programmers are acknowledged in CREDITS.TXT
4
;; Kernel programmers are acknowledged in CREDITS.TXT
5
;;
5
;;
6
;; Data in this file was originally part of MenuetOS project which is
6
;; Data in this file was originally part of MenuetOS project which is
7
;; distributed under the terms of GNU GPL. It is modified and redistributed as
7
;; distributed under the terms of GNU GPL. It is modified and redistributed as
8
;; part of KolibriOS project under the terms of GNU GPL.
8
;; part of KolibriOS project under the terms of GNU GPL.
Line 27... Line 27...
27
format binary as "mnt"
27
format binary as "mnt"
Line 28... Line 28...
28
 
28
 
29
include 'macros.inc'
29
include 'macros.inc'
Line 30... Line 30...
30
include 'struct.inc'
30
include 'struct.inc'
Line 31... Line 31...
31
 
31
 
32
$Revision: 9950 $
32
$Revision: 9958 $
Line 33... Line 33...
33
 
33
 
34
 
34
 
-
 
35
USE_COM_IRQ     = 1      ; make irq 3 and irq 4 available for PCI devices
Line 35... Line 36...
35
USE_COM_IRQ     = 1      ; make irq 3 and irq 4 available for PCI devices
36
VESA_1_2_VIDEO  = 0      ; enable vesa 1.2 bank switch functions
36
VESA_1_2_VIDEO  = 0      ; enable vesa 1.2 bank switch functions
37
 
37
 
38
; Enabling the next line will enable serial output console
38
; Enabling the next line will enable serial output console
39
;debug_com_base  = 0x3f8  ; 0x3f8 is com1, 0x2f8 is com2, 0x3e8 is com3,
Line 87... Line 88...
87
;;    - Scincode.inc  Window skinning
88
;;    - Scincode.inc  Window skinning
88
;;    - Pci32.inc     PCI functions
89
;;    - Pci32.inc     PCI functions
89
;;
90
;;
90
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
91
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 91... Line -...
91
 
-
 
92
; In bios boot mode the kernel code below is appended to bootbios.bin file.
92
 
93
; That is a loading and initialization code that also draws the blue screen
93
; That is a loading and initialization code that also draws the blue screen
94
; menu with svn revision number near top right corner of the screen. This fasm
-
 
95
; preprocessor code searches for '****' signature inside bootbios.bin and
-
 
96
; places revision number there.
-
 
97
if ~ defined UEFI
-
 
98
  bootbios:
-
 
99
  if defined extended_primary_loader
-
 
100
    file 'bootbios.bin.ext_loader'
-
 
101
  else if defined pretest_build
-
 
102
    file 'bootbios.bin.pretest'
-
 
103
  else
94
; menu with svn revision number near top right corner of the screen.
104
    file 'bootbios.bin'
-
 
105
  end if
-
 
106
  if __REV__ > 0
-
 
107
    cur_pos = 0
-
 
108
    cnt = 0
-
 
109
    repeat $ - bootbios
-
 
110
      load a byte from %
-
 
111
      if a = '*'
-
 
112
        cnt = cnt + 1
-
 
113
      else
-
 
114
        cnt = 0
-
 
115
      end if
-
 
116
      if cnt = 4
-
 
117
        cur_pos = % - 1
-
 
118
        break
-
 
119
      end if
-
 
120
    end repeat
-
 
121
    store byte ' ' at cur_pos + 1
-
 
122
    rev_var = __REV__
-
 
123
    while rev_var > 0
-
 
124
      store byte rev_var mod 10 + '0' at cur_pos
-
 
125
      cur_pos = cur_pos - 1
-
 
126
      rev_var = rev_var / 10
-
 
127
    end while
-
 
128
      store byte ' ' at cur_pos
-
 
129
      store dword ' SVN' at cur_pos - 4
-
 
130
  end if
-
 
Line 131... Line 95...
131
end if
95
include "bootbios.inc"
132
 
96
 
Line 133... Line 97...
133
use32
97
use32
134
org $+0x10000
98
org $+KERNEL_BASE
135
 
99
 
136
align 4
100
align 4