vbox的更動 7099 路徑 trunk/src/VBox/Devices/PC/BIOS/rombios.c
- 時間撮記:
- 2008-2-22 下午02:05:36 (17 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Devices/PC/BIOS/rombios.c
r6879 r7099 2442 2442 chsgeo_base = 0x70; 2443 2443 break; 2444 case 4: 2445 chsgeo_base = 0x40; 2446 break; 2447 case 5: 2448 chsgeo_base = 0x48; 2449 break; 2450 case 6: 2451 chsgeo_base = 0x50; 2452 break; 2453 case 7: 2454 chsgeo_base = 0x58; 2455 break; 2444 2456 default: 2445 2457 chsgeo_base = 0; … … 2453 2465 else 2454 2466 { 2455 Bit32u temp_sectors = sectors;2456 2457 //FIXME: only valid for LBA translation2458 lspt = 63;2459 temp_sectors /= 63;2460 lheads = temp_sectors / 1024;2461 if (lheads>128) lheads = 255;2462 else if (lheads>64) lheads = 128;2463 else if (lheads>32) lheads = 64;2464 else if (lheads>16) lheads = 32;2465 else lheads=16;2466 lcylinders = temp_sectors / lheads;2467 2468 // clip to 1024 cylinders2469 if (lcylinders > 1024) lcylinders=1024;2470 2471 #if 02472 2467 lcylinders = 0; 2473 2468 lheads = 0; 2474 2469 lspt = 0; 2475 #endif2476 2470 } 2477 2471 BX_INFO("ata%d-%d: PCHS=%u/%d/%d LCHS=%u/%u/%u\n", channel, slave, cylinders, heads, spt, lcylinders, lheads, lspt);
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器