@@ -8,7 +8,7 @@ use bootloader_api::{
88 info:: { FrameBuffer , FrameBufferInfo , MemoryRegion , TlsTemplate } ,
99 BootInfo , BootloaderConfig ,
1010} ;
11- use bootloader_boot_config:: LevelFilter ;
11+ use bootloader_boot_config:: { BootConfig , LevelFilter } ;
1212use core:: { alloc:: Layout , arch:: asm, mem:: MaybeUninit , slice} ;
1313use level_4_entries:: UsedLevel4Entries ;
1414use usize_conversions:: FromUsize ;
@@ -125,6 +125,7 @@ impl<'a> Kernel<'a> {
125125/// directly to these functions, so see their docs for more info.
126126pub fn load_and_switch_to_kernel < I , D > (
127127 kernel : Kernel ,
128+ boot_config : BootConfig ,
128129 mut frame_allocator : LegacyFrameAllocator < I , D > ,
129130 mut page_tables : PageTables ,
130131 system_info : SystemInfo ,
@@ -144,6 +145,7 @@ where
144145 ) ;
145146 let boot_info = create_boot_info (
146147 & config,
148+ & boot_config,
147149 frame_allocator,
148150 & mut page_tables,
149151 & mut mappings,
@@ -435,6 +437,7 @@ pub struct Mappings {
435437/// are taken from the given `frame_allocator`.
436438pub fn create_boot_info < I , D > (
437439 config : & BootloaderConfig ,
440+ boot_config : & BootConfig ,
438441 mut frame_allocator : LegacyFrameAllocator < I , D > ,
439442 page_tables : & mut PageTables ,
440443 mappings : & mut Mappings ,
@@ -539,6 +542,7 @@ where
539542 . map ( |addr| addr. as_u64 ( ) )
540543 . into ( ) ;
541544 info. ramdisk_len = mappings. ramdisk_slice_len ;
545+ info. _test_sentinel = boot_config. _test_sentinel ;
542546 info
543547 } ) ;
544548
0 commit comments