@@ -55,8 +55,8 @@ pub use memory_map::{
55
55
} ;
56
56
pub use module:: { ModuleIter , ModuleTag } ;
57
57
pub use rsdp:: { RsdpV1Tag , RsdpV2Tag } ;
58
- pub use tag_type:: TagType ;
59
- use tag_type:: { Tag , TagIter } ;
58
+ pub use tag_type:: { Tag , TagType , TagTypeId } ;
59
+ use tag_type:: TagIter ;
60
60
pub use vbe_info:: {
61
61
VBECapabilities , VBEControlInfo , VBEDirectColorAttributes , VBEField , VBEInfoTag ,
62
62
VBEMemoryModel , VBEModeAttributes , VBEModeInfo , VBEWindowAttributes ,
@@ -330,16 +330,16 @@ impl BootInformation {
330
330
331
331
impl BootInformationInner {
332
332
fn has_valid_end_tag ( & self ) -> bool {
333
- const END_TAG : Tag = Tag {
334
- typ : TagType :: End ,
333
+ let end_tag_prototype : Tag = Tag {
334
+ typ : TagType :: End . into ( ) ,
335
335
size : 8 ,
336
336
} ;
337
337
338
338
let self_ptr = self as * const _ ;
339
- let end_tag_addr = self_ptr as usize + ( self . total_size - END_TAG . size ) as usize ;
339
+ let end_tag_addr = self_ptr as usize + ( self . total_size - end_tag_prototype . size ) as usize ;
340
340
let end_tag = unsafe { & * ( end_tag_addr as * const Tag ) } ;
341
341
342
- end_tag. typ == END_TAG . typ && end_tag. size == END_TAG . size
342
+ end_tag. typ == end_tag_prototype . typ && end_tag. size == end_tag_prototype . size
343
343
}
344
344
}
345
345
0 commit comments