Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
redox-os
uefi_alloc
Commits
55b67cd7
Verified
Commit
55b67cd7
authored
Nov 13, 2018
by
Jeremy Soller
Browse files
Fix implementation of GlobalAlloc
parent
3d865b8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib.rs
View file @
55b67cd7
...
...
@@ -29,7 +29,7 @@ fn get_uefi() -> Option<&'static mut SystemTable> {
pub
struct
Allocator
;
unsafe
impl
<
'a
>
GlobalAlloc
for
&
'a
Allocator
{
unsafe
impl
GlobalAlloc
for
Allocator
{
unsafe
fn
alloc
(
&
self
,
layout
:
Layout
)
->
*
mut
u8
{
if
let
Some
(
ref
mut
uefi
)
=
get_uefi
()
{
let
mut
ptr
=
0
;
...
...
Write
Preview
Markdown
is supported
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