@@ -45,7 +45,7 @@ use core::ptr::{self, NonNull};
4545use core:: sync:: atomic:: { AtomicPtr , Ordering } ;
4646use core:: time:: Duration ;
4747use core:: { mem, slice} ;
48- use uefi_raw:: table:: boot:: { InterfaceType , TimerDelay } ;
48+ use uefi_raw:: table:: boot:: { AllocateType as RawAllocateType , InterfaceType , TimerDelay } ;
4949#[ cfg( feature = "alloc" ) ]
5050use { alloc:: vec:: Vec , uefi:: ResultExt } ;
5151
@@ -136,9 +136,9 @@ pub fn allocate_pages(ty: AllocateType, mem_ty: MemoryType, count: usize) -> Res
136136 let bt = unsafe { bt. as_ref ( ) } ;
137137
138138 let ( ty, initial_addr) = match ty {
139- AllocateType :: AnyPages => ( 0 , 0 ) ,
140- AllocateType :: MaxAddress ( addr) => ( 1 , addr) ,
141- AllocateType :: Address ( addr) => ( 2 , addr) ,
139+ AllocateType :: AnyPages => ( RawAllocateType :: AnyPages , 0 ) ,
140+ AllocateType :: MaxAddress ( addr) => ( RawAllocateType :: MaxAddress , addr) ,
141+ AllocateType :: Address ( addr) => ( RawAllocateType :: Address , addr) ,
142142 } ;
143143
144144 let mut addr1 = initial_addr;
0 commit comments