@@ -55,8 +55,8 @@ pub use memory_map::{
5555} ;
5656pub use module:: { ModuleIter , ModuleTag } ;
5757pub 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 ;
6060pub use vbe_info:: {
6161 VBECapabilities , VBEControlInfo , VBEDirectColorAttributes , VBEField , VBEInfoTag ,
6262 VBEMemoryModel , VBEModeAttributes , VBEModeInfo , VBEWindowAttributes ,
@@ -330,16 +330,16 @@ impl BootInformation {
330330
331331impl BootInformationInner {
332332 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 ( ) ,
335335 size : 8 ,
336336 } ;
337337
338338 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 ;
340340 let end_tag = unsafe { & * ( end_tag_addr as * const Tag ) } ;
341341
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
343343 }
344344}
345345
0 commit comments