Lines 746-751
Link Here
|
746 |
#ifndef STAGE1_5 |
746 |
#ifndef STAGE1_5 |
747 |
static unsigned long cur_part_offset; |
747 |
static unsigned long cur_part_offset; |
748 |
static unsigned long cur_part_addr; |
748 |
static unsigned long cur_part_addr; |
|
|
749 |
static unsigned long cur_part_start; |
750 |
static int cur_part_entry; |
749 |
#endif |
751 |
#endif |
750 |
|
752 |
|
751 |
/* Open a partition. */ |
753 |
/* Open a partition. */ |
Lines 815-820
Link Here
|
815 |
|
817 |
|
816 |
cur_part_offset = part_offset; |
818 |
cur_part_offset = part_offset; |
817 |
cur_part_addr = BOOT_PART_TABLE + (entry << 4); |
819 |
cur_part_addr = BOOT_PART_TABLE + (entry << 4); |
|
|
820 |
cur_part_start = part_start; |
821 |
cur_part_entry = entry; |
818 |
#endif /* ! STAGE1_5 */ |
822 |
#endif /* ! STAGE1_5 */ |
819 |
|
823 |
|
820 |
/* If this is a valid partition... */ |
824 |
/* If this is a valid partition... */ |
Lines 1142-1147
Link Here
|
1142 |
src = (char *) SCRATCHADDR + BOOTSEC_PART_OFFSET; |
1146 |
src = (char *) SCRATCHADDR + BOOTSEC_PART_OFFSET; |
1143 |
while (dst < (char *) BOOT_PART_TABLE + BOOTSEC_PART_LENGTH) |
1147 |
while (dst < (char *) BOOT_PART_TABLE + BOOTSEC_PART_LENGTH) |
1144 |
*dst++ = *src++; |
1148 |
*dst++ = *src++; |
|
|
1149 |
PC_SLICE_START (BOOT_PART_TABLE - PC_SLICE_OFFSET, cur_part_entry) = cur_part_start; |
1145 |
|
1150 |
|
1146 |
/* Set the active flag of the booted partition. */ |
1151 |
/* Set the active flag of the booted partition. */ |
1147 |
for (i = 0; i < 4; i++) |
1152 |
for (i = 0; i < 4; i++) |