Rev 4377 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 4377 | Rev 4393 | ||
|---|---|---|---|
| Line 487... | Line 487... | ||
| 487 | int udebug_regs_read(thread_t *t, void *buffer) |
487 | int udebug_regs_read(thread_t *t, void *buffer) |
| 488 | { |
488 | { |
| 489 | istate_t *state; |
489 | istate_t *state; |
| 490 | int rc; |
490 | int rc; |
| 491 | 491 | ||
| 492 | // printf("udebug_regs_read()\n"); |
492 | LOG("udebug_regs_read()"); |
| 493 | 493 | ||
| 494 | /* On success, this will lock t->udebug.lock */ |
494 | /* On success, this will lock t->udebug.lock */ |
| 495 | rc = _thread_op_begin(t, false); |
495 | rc = _thread_op_begin(t, false); |
| 496 | if (rc != EOK) { |
496 | if (rc != EOK) { |
| 497 | return rc; |
497 | return rc; |
| Line 507... | Line 507... | ||
| 507 | /* Copy to the allocated buffer */ |
507 | /* Copy to the allocated buffer */ |
| 508 | memcpy(buffer, state, sizeof(istate_t)); |
508 | memcpy(buffer, state, sizeof(istate_t)); |
| 509 | 509 | ||
| 510 | _thread_op_end(t); |
510 | _thread_op_end(t); |
| 511 | 511 | ||
| - | 512 | LOG("pc = 0x%" PRIp, istate_get_pc((istate_t *) buffer)); |
|
| - | 513 | ||
| 512 | return 0; |
514 | return 0; |
| 513 | } |
515 | } |
| 514 | 516 | ||
| 515 | int udebug_regs_write(thread_t *t, void *buffer) |
517 | int udebug_regs_write(thread_t *t, void *buffer) |
| 516 | { |
518 | { |