diff options
author | marcel <marcel@FreeBSD.org> | 2008-03-06 16:59:36 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2008-03-06 16:59:36 +0000 |
commit | d0e9f0f0d14fc27ca9c72eb21366ae4821ed756a (patch) | |
tree | 04917905b6b7917f2251466d49efcf71d248c1f8 | |
parent | a0d97bf1991748cdad000442f28fb358282beb8a (diff) | |
download | FreeBSD-src-d0e9f0f0d14fc27ca9c72eb21366ae4821ed756a.zip FreeBSD-src-d0e9f0f0d14fc27ca9c72eb21366ae4821ed756a.tar.gz |
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.
-rw-r--r-- | sys/powerpc/include/pcpu.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/powerpc/include/pcpu.h b/sys/powerpc/include/pcpu.h index 0aa0a54..3970ad5 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()) |