Also look for an "elf64 kernel" (for sparc64) and "elf32 kernel" (for
powerpc) when building metadata.
This commit is contained in:
parent
daf509c612
commit
145b0eb56d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114338
@ -294,7 +294,9 @@ md_load(char *args, vm_offset_t *modulep)
|
||||
addr = roundup(addr, PAGE_SIZE);
|
||||
|
||||
kernend = 0;
|
||||
kfp = file_findfile(NULL, "elf kernel");
|
||||
kfp = file_findfile(NULL, "elf32 kernel");
|
||||
if (kfp == NULL)
|
||||
kfp = file_findfile(NULL, "elf kernel");
|
||||
if (kfp == NULL)
|
||||
panic("can't find kernel file");
|
||||
file_addmetadata(kfp, MODINFOMD_HOWTO, sizeof howto, &howto);
|
||||
|
@ -294,7 +294,9 @@ md_load(char *args, vm_offset_t *modulep)
|
||||
addr = roundup(addr, PAGE_SIZE);
|
||||
|
||||
kernend = 0;
|
||||
kfp = file_findfile(NULL, "elf kernel");
|
||||
kfp = file_findfile(NULL, "elf32 kernel");
|
||||
if (kfp == NULL)
|
||||
kfp = file_findfile(NULL, "elf kernel");
|
||||
if (kfp == NULL)
|
||||
panic("can't find kernel file");
|
||||
file_addmetadata(kfp, MODINFOMD_HOWTO, sizeof howto, &howto);
|
||||
|
@ -296,7 +296,9 @@ md_load(char *args, vm_offset_t *modulep)
|
||||
addr = roundup(addr, PAGE_SIZE);
|
||||
|
||||
kernend = 0;
|
||||
kfp = file_findfile(NULL, "elf kernel");
|
||||
kfp = file_findfile(NULL, "elf64 kernel");
|
||||
if (kfp == NULL)
|
||||
kfp = file_findfile(NULL, "elf kernel");
|
||||
if (kfp == NULL)
|
||||
panic("can't find kernel file");
|
||||
file_addmetadata(kfp, MODINFOMD_HOWTO, sizeof howto, &howto);
|
||||
|
Loading…
Reference in New Issue
Block a user