35,7 → 35,7 |
* @brief Udebug IPC message handling. |
*/ |
|
#include <console/klog.h> |
#include <print.h> |
#include <proc/task.h> |
#include <proc/thread.h> |
#include <arch.h> |
53,7 → 53,7 |
int rc; |
void *buffer; |
|
klog_printf("debug_regs_write()"); |
printf("debug_regs_write()\n"); |
|
uspace_data = (void *)IPC_GET_ARG3(call->data); |
to_copy = sizeof(istate_t); |
61,13 → 61,13 |
|
rc = copy_from_uspace(buffer, uspace_data, to_copy); |
if (rc != 0) { |
klog_printf("debug_regs_write() - copy failed"); |
printf("debug_regs_write() - copy failed\n"); |
return rc; |
} |
|
call->buffer = buffer; |
|
klog_printf(" - done"); |
printf(" - done\n"); |
return 0; |
} |
|
78,7 → 78,7 |
int rc; |
void *buffer; |
|
klog_printf("udebug_rp_mem_write()"); |
printf("udebug_rp_mem_write()\n"); |
|
uspace_data = (void *)IPC_GET_ARG2(call->data); |
to_copy = IPC_GET_ARG4(call->data); |
87,13 → 87,13 |
|
rc = copy_from_uspace(buffer, uspace_data, to_copy); |
if (rc != 0) { |
klog_printf(" - copy failed"); |
printf(" - copy failed\n"); |
return rc; |
} |
|
call->buffer = buffer; |
|
klog_printf(" - done"); |
printf(" - done\n"); |
return 0; |
} |
|
161,7 → 161,7 |
thread_t *t; |
int rc; |
|
//klog_printf("debug_go()"); |
//printf("debug_go()\n"); |
|
t = (thread_t *)IPC_GET_ARG2(call->data); |
|
178,7 → 178,7 |
thread_t *t; |
int rc; |
|
klog_printf("debug_stop()"); |
printf("debug_stop()\n"); |
|
t = (thread_t *)IPC_GET_ARG2(call->data); |
|
278,7 → 278,7 |
void *buffer; |
int rc; |
|
klog_printf("debug_regs_read()"); |
printf("debug_regs_read()\n"); |
|
t = (thread_t *) IPC_GET_ARG2(call->data); |
buffer = malloc(sizeof(istate_t), 0); |
371,7 → 371,7 |
unsigned size; |
int rc; |
|
klog_printf("udebug_receive_mem_write()"); |
printf("udebug_receive_mem_write()\n"); |
|
uspace_dst = IPC_GET_ARG3(call->data); |
size = IPC_GET_ARG4(call->data); |