Changes in kernel/arch/ia64/src/ddi/ddi.c [7de18418:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia64/src/ddi/ddi.c
r7de18418 r9d58539 56 56 { 57 57 if (!task->arch.iomap) { 58 uint8_t *map; 59 58 60 task->arch.iomap = malloc(sizeof(bitmap_t), 0); 59 if (task->arch.iomap == NULL) 61 map = malloc(BITS2BYTES(IO_MEMMAP_PAGES), 0); 62 if(!map) 60 63 return ENOMEM; 61 62 void *store = malloc(bitmap_size(IO_MEMMAP_PAGES, 0), 0); 63 if (store == NULL) 64 return ENOMEM; 65 66 bitmap_initialize(task->arch.iomap, IO_MEMMAP_PAGES, 0, store); 64 bitmap_initialize(task->arch.iomap, map, IO_MEMMAP_PAGES); 67 65 bitmap_clear_range(task->arch.iomap, 0, IO_MEMMAP_PAGES); 68 66 } … … 71 69 size = ALIGN_UP(size + ioaddr - 4 * iopage, PORTS_PER_PAGE); 72 70 bitmap_set_range(task->arch.iomap, iopage, size / 4); 73 71 74 72 return 0; 75 73 }
Note:
See TracChangeset
for help on using the changeset viewer.