Changeset efa8aec6 in mainline


Ignore:
Timestamp:
2011-01-06T22:31:57Z (14 years ago)
Author:
martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e3fe7df
Parents:
ba21938
Message:

do not filter the upper bit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/netif/dp8390/dp8390.c

    rba21938 refa8aec6  
    377377static uint8_t isr_acknowledge(dpeth_t *dep)
    378378{
    379         uint8_t isr = inb_reg0(dep, DP_ISR) & 0x7f;
     379        uint8_t isr = inb_reg0(dep, DP_ISR);
    380380        if (isr != 0)
    381381                outb_reg0(dep, DP_ISR, isr);
     
    392392                fprintf(stderr, "dp8390: got premature interrupt\n");
    393393       
    394         for (; isr != 0; isr = isr_acknowledge(dep)) {
     394        for (; (isr & 0x7f) != 0; isr = isr_acknowledge(dep)) {
    395395                if (isr & (ISR_PTX | ISR_TXE)) {
    396396                        if (isr & ISR_TXE)
     
    429429                        }
    430430                       
    431                         dep->de_sendq[sendq_tail].sq_filled = 0;
     431                        dep->de_sendq[sendq_tail].sq_filled = false;
    432432                       
    433433                        if (++sendq_tail == dep->de_sendq_nr)
Note: See TracChangeset for help on using the changeset viewer.