Changeset 89b6a3b in mainline
- Timestamp:
- 2012-02-12T12:40:52Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 69114714
- Parents:
- c617e98
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/irq.c
rc617e98 r89b6a3b 431 431 } 432 432 break; 433 case CMD_MEM_READ_8:434 va = code->cmds[i].addr;435 memcpy_from_uspace(&val8, va, sizeof(val8));436 if (dstarg)437 scratch[dstarg] = val8;438 break;439 case CMD_MEM_READ_16:440 va = code->cmds[i].addr;441 memcpy_from_uspace(&val16, va, sizeof(val16));442 if (dstarg)443 scratch[dstarg] = val16;444 break;445 case CMD_MEM_READ_32:446 va = code->cmds[i].addr;447 memcpy_from_uspace(&val32, va, sizeof(val32));448 if (dstarg)449 scratch[dstarg] = val32;450 break;451 case CMD_MEM_WRITE_8:452 val8 = code->cmds[i].value;453 va = code->cmds[i].addr;454 memcpy_to_uspace(va, &val8, sizeof(val8));455 break;456 case CMD_MEM_WRITE_16:457 val16 = code->cmds[i].value;458 va = code->cmds[i].addr;459 memcpy_to_uspace(va, &val16, sizeof(val16));460 break;461 case CMD_MEM_WRITE_32:462 val32 = code->cmds[i].value;463 va = code->cmds[i].addr;464 memcpy_to_uspace(va, &val32, sizeof(val32));465 break;466 case CMD_MEM_WRITE_A_8:467 if (srcarg) {468 val8 = scratch[srcarg];469 va = code->cmds[i].addr;470 memcpy_to_uspace(va, &val8, sizeof(val8));471 }472 break;473 case CMD_MEM_WRITE_A_16:474 if (srcarg) {475 val16 = scratch[srcarg];476 va = code->cmds[i].addr;477 memcpy_to_uspace(va, &val16, sizeof(val16));478 }479 break;480 case CMD_MEM_WRITE_A_32:481 if (srcarg) {482 val32 = scratch[srcarg];483 va = code->cmds[i].addr;484 memcpy_to_uspace(va, &val32, sizeof(val32));485 }486 break;487 433 case CMD_BTEST: 488 434 if ((srcarg) && (dstarg)) {
Note:
See TracChangeset
for help on using the changeset viewer.