Commit d916f7d4 authored by 一笑's avatar 一笑
Browse files

copyout2

parent 42152dfa
No related merge requests found
Showing with 16 additions and 2 deletions
+16 -2
......@@ -15,5 +15,6 @@
"stat.h": "c",
"syscall.h": "c",
"type_traits": "c"
}
},
"C_Cpp.errorSquiggles": "disabled"
}
\ No newline at end of file
......@@ -500,4 +500,17 @@ void vmprint(pagetable_t pagetable)
{
printf("page table %p\n", pagetable);
vmprint_helper(pagetable, 1);
}
\ No newline at end of file
}
/*
int
copyout2(uint64 dstva, char *src, uint64 len)
{
uint64 sz = myproc()->sz;
if (dstva + len > sz || dstva >= sz) {
return -1;
}
memmove((void *)dstva, src, len);
return 0;
}
*/
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment