src/emu/cpu/i86/instr286.c
| r11723 | r11724 | |
| 510 | 510 | desc[2] = ReadWord(addr+4); |
| 511 | 511 | r = RIGHTS(desc); |
| 512 | 512 | if (SEGDESC(r) || (GATE(r) != LDTDESC)) throw TRAP(GENERAL_PROTECTION_FAULT,IDXTBL(sel)); |
| 513 | | if (!PRES(r)) TRAP(SEG_NOT_PRESENT,IDXTBL(sel)); |
| 513 | if (!PRES(r)) throw TRAP(SEG_NOT_PRESENT,IDXTBL(sel)); |
| 514 | 514 | } else { |
| 515 | 515 | desc[0] = 0; |
| 516 | 516 | desc[1] = 0; |
| r11723 | r11724 | |
| 530 | 530 | desc[2] = ReadWord(addr+4); |
| 531 | 531 | r = RIGHTS(desc); |
| 532 | 532 | if (SEGDESC(r) || (GATE(r) != TSSDESCIDLE)) throw TRAP(GENERAL_PROTECTION_FAULT,IDXTBL(sel)); |
| 533 | | if (!PRES(r)) TRAP(SEG_NOT_PRESENT,IDXTBL(sel)); |
| 533 | if (!PRES(r)) throw TRAP(SEG_NOT_PRESENT,IDXTBL(sel)); |
| 534 | 534 | desc[2] |= 0x200; // mark busy |
| 535 | 535 | WriteWord(addr+4, desc[2]); |
| 536 | 536 | cpustate->tr.sel=sel; |
src/emu/machine/idectrl.c
| r11723 | r11724 | |
| 79 | 79 | #define IDE_COMMAND_SECURITY_UNLOCK 0xf2 |
| 80 | 80 | #define IDE_COMMAND_UNKNOWN_F9 0xf9 |
| 81 | 81 | #define IDE_COMMAND_VERIFY_MULTIPLE 0x40 |
| 82 | #define IDE_COMMAND_VERIFY_NORETRY 0x41 |
| 82 | 83 | #define IDE_COMMAND_ATAPI_IDENTIFY 0xa1 |
| 83 | 84 | #define IDE_COMMAND_RECALIBRATE 0x10 |
| 84 | 85 | #define IDE_COMMAND_IDLE_IMMEDIATE 0xe1 |
| r11723 | r11724 | |
| 1040 | 1041 | break; |
| 1041 | 1042 | |
| 1042 | 1043 | case IDE_COMMAND_VERIFY_MULTIPLE: |
| 1043 | | LOGPRINT(("IDE Read verify multiple with retries: C=%d H=%d S=%d LBA=%d count=%d\n", |
| 1044 | case IDE_COMMAND_VERIFY_NORETRY: |
| 1045 | LOGPRINT(("IDE Read verify multiple with/without retries: C=%d H=%d S=%d LBA=%d count=%d\n", |
| 1044 | 1046 | ide->cur_cylinder, ide->cur_head, ide->cur_sector, lba_address(ide), ide->sector_count)); |
| 1045 | 1047 | |
| 1046 | 1048 | /* reset the buffer */ |