diff options
author | peter <peter@FreeBSD.org> | 2003-04-30 22:05:48 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-04-30 22:05:48 +0000 |
commit | 6b137c3266ea8c3893a18ba041f5a9a22123e746 (patch) | |
tree | e23f8c3eaf1bcdd1dd881fd2d95c005fc9533284 /sys/powerpc/aim | |
parent | 47e12d9503a5bdb95811dc7295bf5f8f3bb94155 (diff) | |
download | FreeBSD-src-6b137c3266ea8c3893a18ba041f5a9a22123e746.zip FreeBSD-src-6b137c3266ea8c3893a18ba041f5a9a22123e746.tar.gz |
Look for an elf32 kernel (powerpc) and elf64 kernel (sparc64) as well
as a plain "elf kernel".
Diffstat (limited to 'sys/powerpc/aim')
-rw-r--r-- | sys/powerpc/aim/machdep.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/powerpc/aim/machdep.c b/sys/powerpc/aim/machdep.c index 81fb604..4bce713 100644 --- a/sys/powerpc/aim/machdep.c +++ b/sys/powerpc/aim/machdep.c @@ -267,7 +267,9 @@ powerpc_init(u_int startkernel, u_int endkernel, u_int basekernel, void *mdp) */ if (mdp != NULL) { preload_metadata = mdp; - kmdp = preload_search_by_type("elf kernel"); + kmdp = preload_search_by_type("elf32 kernel"); + if (kmdp != NULL) + kmdp = preload_search_by_type("elf kernel"); if (kmdp != NULL) { boothowto = MD_FETCH(kmdp, MODINFOMD_HOWTO, int); kern_envp = MD_FETCH(kmdp, MODINFOMD_ENVP, char *); |