Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
redox-os
kernel
Commits
d432f7ce
Verified
Commit
d432f7ce
authored
Apr 14, 2019
by
Jeremy Soller
Browse files
Add debugging for mprotect
parent
3a0671d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/syscall/debug.rs
View file @
d432f7ce
...
...
@@ -264,6 +264,12 @@ pub fn format_call(a: usize, b: usize, c: usize, d: usize, e: usize, f: usize) -
"mkns({:?})"
,
validate_slice
(
b
as
*
const
[
usize
;
2
],
c
)
),
SYS_MPROTECT
=>
format!
(
"mprotect({:#X}, {}, {:#X})"
,
b
,
c
,
d
),
SYS_NANOSLEEP
=>
format!
(
"nanosleep({:?}, ({}, {}))"
,
validate_slice
(
b
as
*
const
TimeSpec
,
1
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment