Subversion Repositories Kolibri OS

Rev

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

Rev 465 Rev 545
Line 1... Line 1...
1
$Revision: 465 $
1
$Revision: 545 $
2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3
;;                                                              ;;
3
;;                                                              ;;
4
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
4
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
5
;; Distributed under terms of the GNU General Public License    ;;
5
;; Distributed under terms of the GNU General Public License    ;;
6
;;                                                              ;;
6
;;                                                              ;;
Line 97... Line 97...
97
        ret
97
        ret
Line 98... Line 98...
98
 
98
 
99
image_retrieved  db 0
99
image_retrieved  db 0
100
counter_of_partitions db 0
100
counter_of_partitions db 0
-
 
101
no_sys_on_hd:
-
 
102
        ; test_to_format_ram_disk (need if not using ram disk)
-
 
103
        cmp   [boot_dev+OS_BASE+0x10000],3
-
 
104
        jne not_format_ram_disk
-
 
105
        ; format_ram_disk
-
 
106
        mov edi, RAMDISK
-
 
107
        mov ecx, 0x1080
-
 
108
        xor eax,eax
-
 
109
@@:		
-
 
110
		stosd
-
 
111
        loop @b
-
 
112
 
-
 
113
        mov ecx, 0x58F7F
-
 
114
        mov eax,0xF6F6F6F6
-
 
115
@@:		
-
 
116
		stosd
-
 
117
        loop @b
-
 
118
        
-
 
119
        mov [RAMDISK+0x200],dword 0xFFFFF0		; fat table
-
 
120
        mov [RAMDISK+0x4200],dword 0xFFFFF0
-
 
121
        
101
no_sys_on_hd:
122
not_format_ram_disk: