Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2899 → Rev 2900

/branches/tracing/kernel/generic/src/udebug/udebug_ipc.c
60,7 → 60,6
if (to_copy > sizeof(istate_t)) to_copy = sizeof(istate_t);
 
buffer = malloc(to_copy, 0);
if (!buffer) return ENOMEM;
 
rc = copy_from_uspace(buffer, uspace_data, to_copy);
if (rc != 0) {
87,7 → 86,6
to_copy = IPC_GET_ARG4(call->data);
 
buffer = malloc(to_copy, 0);
if (!buffer) return ENOMEM;
 
rc = copy_from_uspace(buffer, uspace_data, to_copy);
if (rc != 0) {
/branches/tracing/kernel/generic/src/udebug/udebug_ops.c
332,7 → 332,6
 
/* Allocate a buffer to hold thread IDs */
id_buffer = malloc(buf_size, 0);
if (!id_buffer) return ENOMEM;
 
ipl = interrupts_disable();
spinlock_lock(&TASK->lock);
387,7 → 386,6
 
/* Prepare a buffer to hold the arguments */
arg_buffer = malloc(6 * sizeof(unative_t), 0);
if (!arg_buffer) return ENOMEM;
 
ipl = interrupts_disable();
 
427,7 → 425,6
 
/* Prepare a buffer to hold the registers */
regs_buffer = malloc(sizeof(istate_t), 0);
if (!regs_buffer) return ENOMEM;
 
ipl = interrupts_disable();
 
503,7 → 500,6
klog_printf("udebug_mem_read()");
 
data_buffer = malloc(n, 0);
if (!data_buffer) return ENOMEM;
 
klog_printf("udebug_mem_read: src=%u, size=%u", uspace_addr, n);