Changeset 25b9e2c in mainline for kernel/arch/amd64/src/ddi/ddi.c
- Timestamp:
- 2007-11-26T22:24:55Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d4e38c7
- Parents:
- 263e1ec
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/ddi/ddi.c
r263e1ec r25b9e2c 75 75 return ENOMEM; 76 76 77 bitmap_initialize(&oldiomap, task->arch.iomap.map, task->arch.iomap.bits); 77 bitmap_initialize(&oldiomap, task->arch.iomap.map, 78 task->arch.iomap.bits); 78 79 bitmap_initialize(&task->arch.iomap, newmap, bits); 79 80 … … 81 82 * Mark the new range inaccessible. 82 83 */ 83 bitmap_set_range(&task->arch.iomap, oldiomap.bits, bits - oldiomap.bits); 84 bitmap_set_range(&task->arch.iomap, oldiomap.bits, 85 bits - oldiomap.bits); 84 86 85 87 /* … … 88 90 */ 89 91 if (oldiomap.bits) { 90 bitmap_copy(&task->arch.iomap, &oldiomap, oldiomap.bits); 92 bitmap_copy(&task->arch.iomap, &oldiomap, 93 oldiomap.bits); 91 94 free(oldiomap.map); 92 95 } … … 128 131 129 132 ASSERT(TASK->arch.iomap.map); 130 bitmap_initialize(&iomap, CPU->arch.tss->iomap, TSS_IOMAP_SIZE * 8); 133 bitmap_initialize(&iomap, CPU->arch.tss->iomap, 134 TSS_IOMAP_SIZE * 8); 131 135 bitmap_copy(&iomap, &TASK->arch.iomap, TASK->arch.iomap.bits); 132 136 /* 133 * It is safe to set the trailing eight bits because of the extra134 * convenience byte in TSS_IOMAP_SIZE.137 * It is safe to set the trailing eight bits because of the 138 * extra convenience byte in TSS_IOMAP_SIZE. 135 139 */ 136 140 bitmap_set_range(&iomap, ALIGN_UP(TASK->arch.iomap.bits, 8), 8);
Note:
See TracChangeset
for help on using the changeset viewer.