Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
relibc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Limkilde Svendsen
relibc
Commits
b063533a
Verified
Commit
b063533a
authored
1 year ago
by
Jacob Lorentzon
Browse files
Options
Downloads
Patches
Plain Diff
Remove redox_phys{map,unmap}.
parent
884dce8e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/sys/redox.h
+0
-2
0 additions, 2 deletions
include/sys/redox.h
src/platform/redox/extra.rs
+0
-23
0 additions, 23 deletions
src/platform/redox/extra.rs
with
0 additions
and
25 deletions
include/sys/redox.h
+
0
−
2
View file @
b063533a
...
...
@@ -12,8 +12,6 @@ extern "C" {
ssize_t
redox_fpath
(
int
fd
,
void
*
buf
,
size_t
count
);
void
*
redox_physalloc
(
size_t
size
);
int
redox_physfree
(
void
*
physical_address
,
size_t
size
);
void
*
redox_physmap
(
void
*
physical_address
,
size_t
size
,
int
flags
);
int
redox_physunmap
(
void
*
virtual_address
);
#endif
...
...
This diff is collapsed.
Click to expand it.
src/platform/redox/extra.rs
+
0
−
23
View file @
b063533a
...
...
@@ -27,29 +27,6 @@ pub unsafe extern "C" fn redox_physfree(physical_address: *mut c_void, size: siz
e
(
syscall
::
physfree
(
physical_address
as
usize
,
size
))
as
c_int
}
#[no_mangle]
pub
unsafe
extern
"C"
fn
redox_physmap
(
physical_address
:
*
mut
c_void
,
size
:
size_t
,
flags
:
c_int
,
)
->
*
mut
c_void
{
let
res
=
e
(
syscall
::
physmap
(
physical_address
as
usize
,
size
,
syscall
::
PhysmapFlags
::
from_bits
(
flags
as
usize
)
.expect
(
"physmap: invalid bit pattern"
),
));
if
res
==
!
0
{
return
ptr
::
null_mut
();
}
else
{
return
res
as
*
mut
c_void
;
}
}
#[no_mangle]
pub
unsafe
extern
"C"
fn
redox_physunmap
(
virtual_address
:
*
mut
c_void
)
->
c_int
{
e
(
syscall
::
physunmap
(
virtual_address
as
usize
))
as
c_int
}
pub
fn
pipe2
(
fds
:
&
mut
[
c_int
],
flags
:
usize
)
->
syscall
::
error
::
Result
<
()
>
{
let
fds
=
<&
mut
[
c_int
;
2
]
>
::
try_from
(
fds
)
.expect
(
"expected Pal pipe2 to have validated pipe2 array"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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