From d5bbdb25b5aee2953114f3cfd8715ecb03840782 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Thu, 6 Mar 2008 16:59:36 +0000 Subject: [PATCH] Add a catch-all for PCPU_MD_FIELDS. While we expect this to be used in the kernel only (by virtue of checking for _KERNEL), ports like lsof (part of gtop) cheat. It sets _KERNEL, but does not set either AIM or E500. As such, PCPU_MD_FIELDS didn't get defined and the build broke. The catch-all is to define PCPU_MD_FIELDS with a dummy integer when at the end of line we ended up without a definition for it. --- sys/powerpc/include/pcpu.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/powerpc/include/pcpu.h b/sys/powerpc/include/pcpu.h index 0aa0a5492b7..3970ad54274 100644 --- a/sys/powerpc/include/pcpu.h +++ b/sys/powerpc/include/pcpu.h @@ -104,6 +104,13 @@ struct pmap; PCPU_MD_AIM_FIELDS \ PCPU_MD_BOOKE_FIELDS #endif +/* + * Catch-all for ports (e.g. lsof, used by gtop) + */ +#ifndef PCPU_MD_FIELDS +#define PCPU_MD_FIELDS \ + int pc_md_placeholder +#endif #define PCPUP ((struct pcpu *) powerpc_get_pcpup())