mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 17:32:43 +00:00
move init of booted_kernel to bootinfo.c
This commit is contained in:
parent
d6514f21d7
commit
178e6e0fed
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68712
@ -118,12 +118,10 @@ elf_exec(struct preloaded_file *fp)
|
||||
return(err);
|
||||
|
||||
/*
|
||||
* Fill in the bootinfo for the kernel.
|
||||
* Fill in rest of bootinfo for the kernel.
|
||||
*/
|
||||
strncpy(bootinfo_v1.booted_kernel, fp->f_name,
|
||||
sizeof(bootinfo_v1.booted_kernel));
|
||||
flen = prom_getenv(PROM_E_BOOTED_OSFLAGS, bootinfo_v1.boot_flags,
|
||||
sizeof(bootinfo_v1.boot_flags));
|
||||
sizeof(bootinfo_v1.boot_flags));
|
||||
bootinfo_v1.hwrpb = (void *)HWRPB_ADDR;
|
||||
bootinfo_v1.hwrpbsize = ((struct rpb *)HWRPB_ADDR)->rpb_size;
|
||||
bootinfo_v1.cngetc = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user