Rev 431 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 431 | Rev 578 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | $Revision: 431 $ |
1 | $Revision: 578 $ |
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 | ;; ;; |
7 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
7 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 8... | Line 8... | ||
8 | 8 | ||
- | 9 | ;************************************************************* |
|
9 | ;************************************************************* |
10 | ;* 12.07.2007 Check all 4 entry of MBR and EMBR |
10 | ;* 29.04.2006 Elimination of hangup after the * |
11 | ;* 29.04.2006 Elimination of hangup after the |
11 | ;* expiration hd_wait_timeout - Mario79 * |
12 | ;* expiration hd_wait_timeout - Mario79 |
12 | ;* 28.01.2006 find all Fat16/32 partition in all input point * |
13 | ;* 28.01.2006 find all Fat16/32 partition in all input point |
13 | ;* to MBR - Mario79 * |
14 | ;* to MBR - Mario79 |
Line 14... | Line 15... | ||
14 | ;************************************************************* |
15 | ;************************************************************* |
15 | 16 | ||
Line 149... | Line 150... | ||
149 | jne problem_hd |
150 | jne problem_hd |
Line 150... | Line 151... | ||
150 | 151 | ||
151 | cmp word [ebx+0x1fe],0xaa55 ; is it valid boot sector? |
152 | cmp word [ebx+0x1fe],0xaa55 ; is it valid boot sector? |
152 | jnz end_partition_chain |
153 | jnz end_partition_chain |
153 | cmp dword [ebx+0x1be+0xc],0 ; skip over empty partition |
154 | cmp dword [ebx+0x1be+0xc],0 ; skip over empty partition |
- | 155 | ; jz next_partition |
|
- | 156 | jnz .next_primary_partition |
|
- | 157 | cmp dword [ebx+0x1be+0xc+16],0 |
|
- | 158 | jnz next_primary_partition |
|
- | 159 | cmp dword [ebx+0x1be+0xc+16+16],0 |
|
- | 160 | jnz next_primary_partition_1 |
|
- | 161 | cmp dword [ebx+0x1be+0xc+16+16+16],0 |
|
- | 162 | jnz next_primary_partition_2 |
|
Line -... | Line 163... | ||
- | 163 | jmp next_partition |
|
154 | jz next_partition |
164 | |
155 | 165 | .next_primary_partition: |
|
156 | push eax |
166 | push eax |
157 | mov al,[ebx+0x1be+4] ; get primary partition type |
167 | mov al,[ebx+0x1be+4] ; get primary partition type |
158 | call scan_partition_types |
168 | call scan_partition_types |