Rev 3523 | Rev 3525 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3523 | Rev 3524 | ||
|---|---|---|---|
| Line 385... | Line 385... | ||
| 385 | boot_sector.sector = sector_size |
385 | boot_sector.sector = sector_size |
| 386 | boot_sector.cluster = cluster_size / sector_size |
386 | boot_sector.cluster = cluster_size / sector_size |
| 387 | boot_sector.reserved = cluster_size / sector_size |
387 | boot_sector.reserved = cluster_size / sector_size |
| 388 | boot_sector.fats = fat_count |
388 | boot_sector.fats = fat_count |
| 389 | boot_sector.rootdir = root_size / dirent_size |
389 | boot_sector.rootdir = root_size / dirent_size |
| - | 390 | if (sectors <= 65535): |
|
| 390 | boot_sector.sectors = (sectors if (sectors <= 65535) else 0) |
391 | boot_sector.sectors = sectors |
| - | 392 | else: |
|
| - | 393 | boot_sector.sectors = 0 |
|
| 391 | boot_sector.descriptor = 0xF8 |
394 | boot_sector.descriptor = 0xF8 |
| 392 | boot_sector.fat_sectors = fat_size / sector_size |
395 | boot_sector.fat_sectors = fat_size / sector_size |
| 393 | boot_sector.track_sectors = 63 |
396 | boot_sector.track_sectors = 63 |
| 394 | boot_sector.heads = 6 |
397 | boot_sector.heads = 6 |
| 395 | boot_sector.hidden = 0 |
398 | boot_sector.hidden = 0 |
| - | 399 | if (sectors > 65535): |
|
| 396 | boot_sector.sectors_big = (sectors if (sectors > 65535) else 0) |
400 | boot_sector.sectors_big = sectors |
| - | 401 | else: |
|
| - | 402 | boot_sector.sectors_big = 0 |
|
| 397 | 403 | ||
| 398 | boot_sector.drive = 0x80 |
404 | boot_sector.drive = 0x80 |
| 399 | boot_sector.extboot_signature = 0x29 |
405 | boot_sector.extboot_signature = 0x29 |
| 400 | boot_sector.serial = random.randint(0, 0xFFFFFFFF) |
406 | boot_sector.serial = random.randint(0, 0xFFFFFFFF) |
| 401 | boot_sector.label = "HELENOS" |
407 | boot_sector.label = "HELENOS" |