1044 |
|
|
1045 |
char mbr[SECTOR_SIZE]; |
char mbr[SECTOR_SIZE]; |
1046 |
char ezbios_check[2*SECTOR_SIZE]; |
char ezbios_check[2*SECTOR_SIZE]; |
1047 |
|
int i; |
1048 |
|
|
1049 |
/* Open the partition. */ |
/* Open the partition. */ |
1050 |
if (! open_partition ()) |
if (! open_partition ()) |
1051 |
return 1; |
return 1; |
1069 |
} |
} |
1070 |
|
|
1071 |
/* Check if the disk can store the Stage 1.5. */ |
/* Check if the disk can store the Stage 1.5. */ |
1072 |
if (PC_SLICE_START (mbr, 0) - 1 < size) |
for (i = 0; i < 4; i++) |
1073 |
{ |
if (PC_SLICE_TYPE (mbr, i) && PC_SLICE_START (mbr, i) - 1 < size) |
1074 |
errnum = ERR_NO_DISK_SPACE; |
{ |
1075 |
return 1; |
errnum = ERR_NO_DISK_SPACE; |
1076 |
} |
return 1; |
1077 |
|
} |
1078 |
|
|
1079 |
/* Check for EZ-BIOS signature. It should be in the third |
/* Check for EZ-BIOS signature. It should be in the third |
1080 |
* sector, but due to remapping it can appear in the second, so |
* sector, but due to remapping it can appear in the second, so |
1081 |
* load and check both. |
* load and check both. |