Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
educg-net-28668-2608132
OSKernel2024-BirdOS-2481
Commits
d916f7d4
Commit
d916f7d4
authored
2 months ago
by
一笑
Browse files
Options
Download
Patches
Plain Diff
copyout2
parent
42152dfa
yi1215
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.vscode/settings.json
+2
-1
.vscode/settings.json
kernel/mm/vm.c
+14
-1
kernel/mm/vm.c
with
16 additions
and
2 deletions
+16
-2
.vscode/settings.json
+
2
−
1
View file @
d916f7d4
...
...
@@ -15,5 +15,6 @@
"stat.h"
:
"c"
,
"syscall.h"
:
"c"
,
"type_traits"
:
"c"
}
},
"C_Cpp.errorSquiggles"
:
"disabled"
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
kernel/mm/vm.c
+
14
−
1
View file @
d916f7d4
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets