@@ -44,7 +44,7 @@ use core::ops::{Deref, DerefMut};
44
44
use core:: ptr:: { self , NonNull } ;
45
45
use core:: sync:: atomic:: { AtomicPtr , Ordering } ;
46
46
use core:: { mem, slice} ;
47
- use uefi_raw:: table:: boot:: { InterfaceType , TimerDelay } ;
47
+ use uefi_raw:: table:: boot:: { AllocateType as RawAllocateType , InterfaceType , TimerDelay } ;
48
48
#[ cfg( feature = "alloc" ) ]
49
49
use { alloc:: vec:: Vec , uefi:: ResultExt } ;
50
50
@@ -135,9 +135,9 @@ pub fn allocate_pages(ty: AllocateType, mem_ty: MemoryType, count: usize) -> Res
135
135
let bt = unsafe { bt. as_ref ( ) } ;
136
136
137
137
let ( ty, initial_addr) = match ty {
138
- AllocateType :: AnyPages => ( 0 , 0 ) ,
139
- AllocateType :: MaxAddress ( addr) => ( 1 , addr) ,
140
- AllocateType :: Address ( addr) => ( 2 , addr) ,
138
+ AllocateType :: AnyPages => ( RawAllocateType :: AnyPages , 0 ) ,
139
+ AllocateType :: MaxAddress ( addr) => ( RawAllocateType :: MaxAddress , addr) ,
140
+ AllocateType :: Address ( addr) => ( RawAllocateType :: Address , addr) ,
141
141
} ;
142
142
143
143
let mut addr1 = initial_addr;
0 commit comments