Changeset 32 for trunk/TOOLS/OS2
- Timestamp:
- Jan 13, 2013, 8:46:36 AM (13 years ago)
- Location:
- trunk/TOOLS/OS2/SETABOOT
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TOOLS/OS2/SETABOOT/SETABOOT.C
r30 r32 143 143 #define AiRBOOTIPENTRY_Flags_BootAble 0x01 144 144 145 CHAR Track0[6 0*512]; // Space for Track-0145 CHAR Track0[62*512]; // Space for Track-0 146 146 PAiRBOOTCODESIG AiRBOOT_CodeSig = 0; 147 147 PAiRBOOTCONFIG AiRBOOT_Config = 0; … … 189 189 BOOL Track0Load (void) { 190 190 USHORT IOCTLHandle; 191 ULONG TrackLayoutLen = sizeof(TRACKLAYOUT)+sizeof(ULONG)*(6 0-1);191 ULONG TrackLayoutLen = sizeof(TRACKLAYOUT)+sizeof(ULONG)*(62-1); 192 192 TRACKLAYOUT *TrackLayoutPtr = malloc(TrackLayoutLen); 193 193 ULONG cbParms = sizeof(TrackLayoutPtr); … … 202 202 TrackLayoutPtr->usCylinder = 0; 203 203 TrackLayoutPtr->usFirstSector = 0; 204 TrackLayoutPtr->cSectors = 6 0;205 206 for (i=0; i<6 0; i++) {204 TrackLayoutPtr->cSectors = 62; 205 206 for (i=0; i<62; i++) { 207 207 TrackLayoutPtr->TrackTable[i].usSectorNumber = i+1; 208 208 TrackLayoutPtr->TrackTable[i].usSectorSize = 512; … … 219 219 BOOL Track0Write (void) { 220 220 USHORT IOCTLHandle; 221 ULONG TrackLayoutLen = sizeof(TRACKLAYOUT)+sizeof(ULONG)*(6 0-1);221 ULONG TrackLayoutLen = sizeof(TRACKLAYOUT)+sizeof(ULONG)*(62-1); 222 222 TRACKLAYOUT *TrackLayoutPtr = malloc(TrackLayoutLen); 223 223 ULONG cbParms = sizeof(TrackLayoutPtr); … … 233 233 TrackLayoutPtr->usCylinder = 0; 234 234 TrackLayoutPtr->usFirstSector = 0; 235 TrackLayoutPtr->cSectors = 6 0;236 237 for (i=0; i<6 0; i++) {235 TrackLayoutPtr->cSectors = 62; 236 237 for (i=0; i<62; i++) { 238 238 TrackLayoutPtr->TrackTable[i].usSectorNumber = i+1; 239 239 TrackLayoutPtr->TrackTable[i].usSectorSize = 512; … … 311 311 // If AiR-BOOT is not installed, the user probably meant to control OS/2 BM with this utility. 312 312 // Since the functionality of this utility is for AiR-BOOT only, we will pass the request to 313 // the OS/2 BM SETBOOT utility which is called SETBM.EXE as of eCS 2. 01.313 // the OS/2 BM SETBOOT utility which is called SETBM.EXE as of eCS 2.1. 314 314 // Since the objective here is to supply OS/2 BM SETBOOT compatibility, if SETBM.EXE is not found, 315 315 // some other system locations are searched for the OS/2 version of SETBOOT.EXE. … … 321 321 APIRET rc = -1; 322 322 RESULTCODES crc = {-1,-1}; 323 PTIB ptib = NULL;324 PPIB ppib = NULL;323 // PTIB ptib = NULL; 324 // PPIB ppib = NULL; 325 325 char buffer[256] = "\0"; 326 326 char cmdline[256] = "\0"; … … 453 453 BOOL XWPEntryFound = FALSE; 454 454 BOOL CDBoot = FALSE; // TRUE if booted from CD; New System will be added when using /4:"LABEL" 455 BOOL Track0Loaded = FALSE; // Assume track0 did not load correctly.455 // BOOL Track0Loaded = FALSE; // Assume track0 did not load correctly. 456 456 BOOL AiRBOOTBad = FALSE; 457 457 … … 472 472 */ 473 473 //puts ("SETABOOT - AiR-BOOT Configuration Utility (OS/2) - (c) 2004-2009 by M. Kiewitz"); 474 puts ("SETABOOT v1.07 - AiR-BOOT Configuration Utility - (c) 2004-2011 by M. Kiewitz");474 puts ("SETABOOT v1.07a - AiR-BOOT Configuration Utility - (c) 2004-2011 by M. Kiewitz"); 475 475 476 476 … … 942 942 // Calculate CheckSum... 943 943 ResultCheck = 0; CurSectorNo = 55; 944 while (CurSectorNo<6 0) {944 while (CurSectorNo<62) { 945 945 ResultCheck = GetChecksumOfSector(ResultCheck, CurSectorNo); 946 946 CurSectorNo++; … … 965 965 // Calculate CheckSum... 966 966 ResultCheck = 0; CurSectorNo = 55; 967 968 /* 969 // Rousseau: # Keep compatible with v1.07 CRC # 970 // AB v1.07 had bugs in writing the wrong number of AB config sectors. 971 // This is fixed in v1.0.8 but the CRC has to be calculated the "v1.07 way" 972 // otherwise v1.07 SET(A)BOOT and INSTALL2.EXE will think the AB config 973 // is corrupted. 974 // So the CRC is calculated over 5 sectors instead of 7. 975 */ 967 976 while (CurSectorNo<60) { 968 977 ResultCheck = GetChecksumOfSector(ResultCheck, CurSectorNo); -
trunk/TOOLS/OS2/SETABOOT/_build.cmd
r30 r32 5 5 6 6 'ide2make '||debug||' -p SETABOOT.WPJ'; 7 'wmake - f SETABOOT.MK';7 'wmake -h -f SETABOOT.MK';
Note:
See TracChangeset
for help on using the changeset viewer.