Subversion Repositories HelenOS

Rev

Rev 3026 | Rev 3471 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3026 Rev 3127
Line 503... Line 503...
503
{
503
{
504
    int rc;
504
    int rc;
505
 
505
 
506
    klog_printf("udebug_mem_write()");
506
    klog_printf("udebug_mem_write()");
507
 
507
 
-
 
508
    /* n must be positive */
-
 
509
    if (n < 1)
-
 
510
        return EINVAL;
-
 
511
 
508
    /* Verify task state */
512
    /* Verify task state */
509
    mutex_lock(&TASK->udebug.lock);
513
    mutex_lock(&TASK->udebug.lock);
510
 
514
 
511
    if (TASK->udebug.dt_state != UDEBUG_TS_ACTIVE) {
515
    if (TASK->udebug.dt_state != UDEBUG_TS_ACTIVE) {
512
        mutex_unlock(&TASK->udebug.lock);
516
        mutex_unlock(&TASK->udebug.lock);
Line 519... Line 523...
519
     * be a problem */
523
     * be a problem */
520
//  rc = copy_to_uspace((void *)uspace_addr, data, n);
524
//  rc = copy_to_uspace((void *)uspace_addr, data, n);
521
//  if (rc) return rc;
525
//  if (rc) return rc;
522
 
526
 
523
    rc = as_debug_write(uspace_addr, data, n);
527
    rc = as_debug_write(uspace_addr, data, n);
-
 
528
   
-
 
529
    klog_printf("rc=%d\n", rc);
524
 
530
 
525
    mutex_unlock(&TASK->udebug.lock);
531
    mutex_unlock(&TASK->udebug.lock);
526
 
532
 
527
    return rc;
533
    return rc;
528
}
534
}