Some bugs in memory driver fixed (destination address of user buffer
not updated)
This commit is contained in:
parent
d09f170abc
commit
f73af8573a
@ -197,6 +197,7 @@ unsigned nr_req; /* length of request vector */
|
|||||||
SELF, D, (vir_bytes) random_buf, chunk);
|
SELF, D, (vir_bytes) random_buf, chunk);
|
||||||
random_putbytes(random_buf, chunk);
|
random_putbytes(random_buf, chunk);
|
||||||
}
|
}
|
||||||
|
user_vir += chunk;
|
||||||
left -= chunk;
|
left -= chunk;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -211,6 +212,7 @@ unsigned nr_req; /* length of request vector */
|
|||||||
proc_nr, D, user_vir, chunk)))
|
proc_nr, D, user_vir, chunk)))
|
||||||
report("MEM","sys_vircopy failed", s);
|
report("MEM","sys_vircopy failed", s);
|
||||||
left -= chunk;
|
left -= chunk;
|
||||||
|
user_vir += chunk;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user