j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: stepan Date: 2006-08-20 17:59:02 +0200 (Sun, 20 Aug 2006) New Revision: 79
Modified: openbios-devel/drivers/esp.c Log: Fix booting without CD in drive.
Modified: openbios-devel/drivers/esp.c =================================================================== --- openbios-devel/drivers/esp.c 2006-08-18 12:57:14 UTC (rev 78) +++ openbios-devel/drivers/esp.c 2006-08-20 15:59:02 UTC (rev 79) @@ -118,7 +118,12 @@ // Check status status = esp->ll->regs[ESP_STATUS];
- if ((status & ESP_STAT_TCNT) != ESP_STAT_TCNT) + DPRINTF("do_command: id %d, cmd[0] 0x%x, status 0x%x\n", sd->id, esp->buffer[0], status); + + // Target didn't want all command data or went to status phase + // instead of data phase? + if ((status & ESP_STAT_TCNT) != ESP_STAT_TCNT + || (status & ESP_STAT_PMASK) == ESP_STATP) return status;
// Get reply @@ -136,6 +141,8 @@ // Check status status = esp->ll->regs[ESP_STATUS];
+ DPRINTF("do_command_reply: status 0x%x\n", status); + if ((status & ESP_STAT_TCNT) != ESP_STAT_TCNT) return status; else