@@ -44,7 +44,7 @@ use core::ops::{Deref, DerefMut};
4444use core:: ptr:: { self , NonNull } ;
4545use core:: sync:: atomic:: { AtomicPtr , Ordering } ;
4646use core:: { mem, slice} ;
47- use uefi_raw:: table:: boot:: { InterfaceType , TimerDelay } ;
47+ use uefi_raw:: table:: boot:: { AllocateType as RawAllocateType , InterfaceType , TimerDelay } ;
4848#[ cfg( feature = "alloc" ) ]
4949use { alloc:: vec:: Vec , uefi:: ResultExt } ;
5050
@@ -135,9 +135,9 @@ pub fn allocate_pages(ty: AllocateType, mem_ty: MemoryType, count: usize) -> Res
135135 let bt = unsafe { bt. as_ref ( ) } ;
136136
137137 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) ,
141141 } ;
142142
143143 let mut addr1 = initial_addr;
0 commit comments