Changeset 25b9e2c in mainline for kernel/arch/ia32/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/ia32/src/ddi/ddi.c
r263e1ec r25b9e2c 76 76 return ENOMEM; 77 77 78 bitmap_initialize(&oldiomap, task->arch.iomap.map, task->arch.iomap.bits); 78 bitmap_initialize(&oldiomap, task->arch.iomap.map, 79 task->arch.iomap.bits); 79 80 bitmap_initialize(&task->arch.iomap, newmap, bits); 80 81 … … 82 83 * Mark the new range inaccessible. 83 84 */ 84 bitmap_set_range(&task->arch.iomap, oldiomap.bits, bits - oldiomap.bits); 85 bitmap_set_range(&task->arch.iomap, oldiomap.bits, 86 bits - oldiomap.bits); 85 87 86 88 /* … … 89 91 */ 90 92 if (oldiomap.bits) { 91 bitmap_copy(&task->arch.iomap, &oldiomap, oldiomap.bits); 93 bitmap_copy(&task->arch.iomap, &oldiomap, 94 oldiomap.bits); 92 95 free(oldiomap.map); 93 96 } … … 129 132 130 133 ASSERT(TASK->arch.iomap.map); 131 bitmap_initialize(&iomap, CPU->arch.tss->iomap, TSS_IOMAP_SIZE * 8); 134 bitmap_initialize(&iomap, CPU->arch.tss->iomap, 135 TSS_IOMAP_SIZE * 8); 132 136 bitmap_copy(&iomap, &task->arch.iomap, task->arch.iomap.bits); 133 137 /* 134 * It is safe to set the trailing eight bits because of the extra135 * convenience byte in TSS_IOMAP_SIZE.138 * It is safe to set the trailing eight bits because of the 139 * extra convenience byte in TSS_IOMAP_SIZE. 136 140 */ 137 141 bitmap_set_range(&iomap, ALIGN_UP(TASK->arch.iomap.bits, 8), 8);
Note:
See TracChangeset
for help on using the changeset viewer.