@@ -45,7 +45,7 @@ use core::ptr::{self, NonNull};
45
45
use core:: sync:: atomic:: { AtomicPtr , Ordering } ;
46
46
use core:: time:: Duration ;
47
47
use core:: { mem, slice} ;
48
- use uefi_raw:: table:: boot:: { InterfaceType , TimerDelay } ;
48
+ use uefi_raw:: table:: boot:: { AllocateType as RawAllocateType , InterfaceType , TimerDelay } ;
49
49
#[ cfg( feature = "alloc" ) ]
50
50
use { alloc:: vec:: Vec , uefi:: ResultExt } ;
51
51
@@ -136,9 +136,9 @@ pub fn allocate_pages(ty: AllocateType, mem_ty: MemoryType, count: usize) -> Res
136
136
let bt = unsafe { bt. as_ref ( ) } ;
137
137
138
138
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 :: ANY_PAGES , 0 ) ,
140
+ AllocateType :: MaxAddress ( addr) => ( RawAllocateType :: MAX_ADDRESS , addr) ,
141
+ AllocateType :: Address ( addr) => ( RawAllocateType :: ADDRESS , addr) ,
142
142
} ;
143
143
144
144
let mut addr1 = initial_addr;
0 commit comments