mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Add powerpc support to libkvm probe function
PowerPC kernels are of DYN type, instead of EXEC. Reviewed by: jhibbits Differential Revision: https://reviews.freebsd.org/D21583
This commit is contained in:
parent
4cdea4a853
commit
8024ba45db
1 changed files with 2 additions and 1 deletions
|
|
@ -131,7 +131,8 @@ _kvm_probe_elf_kernel(kvm_t *kd, int class, int machine)
|
|||
{
|
||||
|
||||
return (kd->nlehdr.e_ident[EI_CLASS] == class &&
|
||||
kd->nlehdr.e_type == ET_EXEC &&
|
||||
((machine == EM_PPC || machine == EM_PPC64) ?
|
||||
kd->nlehdr.e_type == ET_DYN : kd->nlehdr.e_type == ET_EXEC) &&
|
||||
kd->nlehdr.e_machine == machine);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue