Changes in kernel/arch/amd64/src/ddi/ddi.c [e9e5b9ab:1d3d2cf] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/ddi/ddi.c
re9e5b9ab r1d3d2cf 126 126 bitmap_initialize(&iomap, CPU->arch.tss->iomap, 127 127 TSS_IOMAP_SIZE * 8); 128 bitmap_copy(&iomap, &TASK->arch.iomap, bits);128 bitmap_copy(&iomap, &TASK->arch.iomap, TASK->arch.iomap.bits); 129 129 130 /*131 * Set the trailing bits in the last byte of the map to disable132 * I/O access.133 */134 bitmap_set_range(&iomap, bits, ALIGN_UP(bits, 8) - bits);135 130 /* 136 131 * It is safe to set the trailing eight bits because of the 137 132 * extra convenience byte in TSS_IOMAP_SIZE. 138 133 */ 139 bitmap_set_range(&iomap, ALIGN_UP( bits, 8), 8);134 bitmap_set_range(&iomap, ALIGN_UP(TASK->arch.iomap.bits, 8), 8); 140 135 } 141 136 irq_spinlock_unlock(&TASK->lock, false);
Note:
See TracChangeset
for help on using the changeset viewer.