@@ -8,7 +8,7 @@ use bootloader_api::{
8
8
info:: { FrameBuffer , FrameBufferInfo , MemoryRegion , TlsTemplate } ,
9
9
BootInfo , BootloaderConfig ,
10
10
} ;
11
- use bootloader_boot_config:: LevelFilter ;
11
+ use bootloader_boot_config:: { BootConfig , LevelFilter } ;
12
12
use core:: { alloc:: Layout , arch:: asm, mem:: MaybeUninit , slice} ;
13
13
use level_4_entries:: UsedLevel4Entries ;
14
14
use usize_conversions:: FromUsize ;
@@ -125,6 +125,7 @@ impl<'a> Kernel<'a> {
125
125
/// directly to these functions, so see their docs for more info.
126
126
pub fn load_and_switch_to_kernel < I , D > (
127
127
kernel : Kernel ,
128
+ boot_config : BootConfig ,
128
129
mut frame_allocator : LegacyFrameAllocator < I , D > ,
129
130
mut page_tables : PageTables ,
130
131
system_info : SystemInfo ,
@@ -144,6 +145,7 @@ where
144
145
) ;
145
146
let boot_info = create_boot_info (
146
147
& config,
148
+ & boot_config,
147
149
frame_allocator,
148
150
& mut page_tables,
149
151
& mut mappings,
@@ -435,6 +437,7 @@ pub struct Mappings {
435
437
/// are taken from the given `frame_allocator`.
436
438
pub fn create_boot_info < I , D > (
437
439
config : & BootloaderConfig ,
440
+ boot_config : & BootConfig ,
438
441
mut frame_allocator : LegacyFrameAllocator < I , D > ,
439
442
page_tables : & mut PageTables ,
440
443
mappings : & mut Mappings ,
@@ -539,6 +542,7 @@ where
539
542
. map ( |addr| addr. as_u64 ( ) )
540
543
. into ( ) ;
541
544
info. ramdisk_len = mappings. ramdisk_slice_len ;
545
+ info. _test_sentinel = boot_config. _test_sentinel ;
542
546
info
543
547
} ) ;
544
548
0 commit comments