Changeset f2bbe8c in mainline
- Timestamp:
- 2012-02-12T22:57:16Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 472d813
- Parents:
- e777847
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/irq.c
re777847 rf2bbe8c 122 122 for (i = 0; i < cmdcount; i++) { 123 123 uintptr_t addr; 124 size_t size; 124 125 125 126 /* Process only commands that use an address. */ 126 127 switch (cmds[i].cmd) { 127 128 case CMD_PIO_READ_8: 129 case CMD_PIO_WRITE_8: 130 case CMD_PIO_WRITE_A_8: 131 size = 1; 132 break; 128 133 case CMD_PIO_READ_16: 134 case CMD_PIO_WRITE_16: 135 case CMD_PIO_WRITE_A_16: 136 size = 2; 137 break; 129 138 case CMD_PIO_READ_32: 130 case CMD_PIO_WRITE_8:131 case CMD_PIO_WRITE_16:132 139 case CMD_PIO_WRITE_32: 133 case CMD_PIO_WRITE_A_8:134 case CMD_PIO_WRITE_A_16:135 140 case CMD_PIO_WRITE_A_32: 141 size = 4; 136 142 break; 137 143 default: … … 142 148 addr = (uintptr_t) cmds[i].addr; 143 149 144 /* Process only memory mapped PIO addresses. */145 if ((void *) addr < IO_SPACE_BOUNDARY)146 continue;147 148 150 for (j = 0; j < rangecount; j++) { 149 151 150 152 /* Find the matching range. */ 151 if (!iswithin(pbase[j], ranges[j].size, addr, 1))153 if (!iswithin(pbase[j], ranges[j].size, addr, size)) 152 154 continue; 153 155
Note:
See TracChangeset
for help on using the changeset viewer.