Subversion Repositories Kolibri OS

Rev

Rev 8089 | Rev 8092 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8089 Rev 8091
Line 69... Line 69...
69
format binary as "mnt"
69
format binary as "mnt"
Line 70... Line 70...
70
 
70
 
71
include 'macros.inc'
71
include 'macros.inc'
Line 72... Line 72...
72
include 'struct.inc'
72
include 'struct.inc'
Line 73... Line 73...
73
 
73
 
74
$Revision: 8089 $
74
$Revision: 8091 $
Line 136... Line 136...
136
; menu with svn revision number near top right corner of the screen. This fasm
136
; menu with svn revision number near top right corner of the screen. This fasm
137
; preprocessor code searches for '****' signature inside bootbios.bin and
137
; preprocessor code searches for '****' signature inside bootbios.bin and
138
; places revision number there.
138
; places revision number there.
139
if ~ defined UEFI
139
if ~ defined UEFI
140
  bootbios:
140
  bootbios:
-
 
141
  if ~ defined extended_primary_loader
141
  file 'bootbios.bin'
142
    file 'bootbios.bin'
-
 
143
  else
-
 
144
    file 'bootbios.bin.ext_loader'
-
 
145
  end if
142
  if __REV__ > 0
146
  if __REV__ > 0
143
    cur_pos = 0
147
    cur_pos = 0
144
    cnt = 0
148
    cnt = 0
145
    repeat $ - bootbios
149
    repeat $ - bootbios
146
      load a byte from %
150
      load a byte from %
Line 695... Line 699...
695
        call    boot_log
699
        call    boot_log
696
; Initialize system timer (IRQ0)
700
; Initialize system timer (IRQ0)
697
        call    PIT_init
701
        call    PIT_init
Line 698... Line 702...
698
 
702
 
-
 
703
; Register ramdisk file system
699
; Register ramdisk file system
704
if ~ defined extended_primary_loader
700
        cmp     [BOOT.rd_load_from], RD_LOAD_FROM_HD    ; will be loaded later
705
        cmp     [BOOT.rd_load_from], RD_LOAD_FROM_HD    ; will be loaded later
-
 
706
        je      @f
701
        je      @f
707
end if
702
        cmp     [BOOT.rd_load_from], RD_LOAD_FROM_NONE
708
        cmp     [BOOT.rd_load_from], RD_LOAD_FROM_NONE
703
        je      @f
709
        je      @f
704
        call    register_ramdisk
710
        call    register_ramdisk
705
;--------------------------------------
711
;--------------------------------------
Line 1097... Line 1103...
1097
 
1103
 
Line 1098... Line 1104...
1098
        popad
1104
        popad
Line -... Line 1105...
-
 
1105
 
-
 
1106
        ret
-
 
1107
 
-
 
1108
;-----------------------------------------------------------------------------
-
 
1109
; Register ramdisk file system
-
 
1110
register_ramdisk:
-
 
1111
        mov     esi, boot_initramdisk
-
 
1112
        call    boot_log
1099
 
1113
        call    ramdisk_init
1100
        ret
1114
        ret
1101
 
1115
 
1102
; in: edx -> APPDATA for OS/IDLE slot
1116
; in: edx -> APPDATA for OS/IDLE slot
1103
; in: ebx = stack base
1117
; in: ebx = stack base