Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/src/ddi/ddi.c

    re9e5b9ab r1d3d2cf  
    127127                bitmap_initialize(&iomap, CPU->arch.tss->iomap,
    128128                    TSS_IOMAP_SIZE * 8);
    129                 bitmap_copy(&iomap, &TASK->arch.iomap, bits);
     129                bitmap_copy(&iomap, &TASK->arch.iomap, TASK->arch.iomap.bits);
    130130               
    131                 /*
    132                  * Set the trailing bits in the last byte of the map to disable
    133                  * I/O access.
    134                  */
    135                 bitmap_set_range(&iomap, bits, ALIGN_UP(bits, 8) - bits);
    136131                /*
    137132                 * It is safe to set the trailing eight bits because of the
    138133                 * extra convenience byte in TSS_IOMAP_SIZE.
    139134                 */
    140                 bitmap_set_range(&iomap, ALIGN_UP(bits, 8), 8);
     135                bitmap_set_range(&iomap, ALIGN_UP(TASK->arch.iomap.bits, 8), 8);
    141136        }
    142137        irq_spinlock_unlock(&TASK->lock, false);
Note: See TracChangeset for help on using the changeset viewer.