/branches/tracing/kernel/generic/src/udebug/udebug_ops.c |
---|
505,10 → 505,6 |
klog_printf("udebug_mem_write()"); |
/* n must be positive */ |
if (n < 1) |
return EINVAL; |
/* Verify task state */ |
mutex_lock(&TASK->udebug.lock); |
525,8 → 521,6 |
// if (rc) return rc; |
rc = as_debug_write(uspace_addr, data, n); |
klog_printf("rc=%d\n", rc); |
mutex_unlock(&TASK->udebug.lock); |
/branches/tracing/kernel/generic/src/mm/as.c |
---|
1029,8 → 1029,7 |
int rc; |
while (n > 0) { |
/* Number of bytes until the end of page */ |
now = ALIGN_DOWN(va, PAGE_SIZE) + PAGE_SIZE - va; |
now = ALIGN_UP(va, PAGE_SIZE) - va; |
if (now > n) now = n; |
rc = debug_write_inside_page(va, data, now); |