Date: Thu, 7 May 2020 17:58:08 +0000 (UTC) From: Brandon Bergren <bdragon@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r360788 - head/sys/kern Message-ID: <202005071758.047Hw8aj071152@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bdragon Date: Thu May 7 17:58:07 2020 New Revision: 360788 URL: https://svnweb.freebsd.org/changeset/base/360788 Log: [PowerPC] Fix powerpcspe build failure after r360569 On powerpcspe, vm_paddr_t is 64 bit despite it being a 32 bit platform. Adjust compile time assertion to compensate. Modified: head/sys/kern/uipc_mbuf.c Modified: head/sys/kern/uipc_mbuf.c ============================================================================== --- head/sys/kern/uipc_mbuf.c Thu May 7 17:00:51 2020 (r360787) +++ head/sys/kern/uipc_mbuf.c Thu May 7 17:58:07 2020 (r360788) @@ -167,7 +167,12 @@ CTASSERT(sizeof(struct m_ext) == 160); #else CTASSERT(offsetof(struct mbuf, m_dat) == 24); CTASSERT(sizeof(struct pkthdr) == 48); +#if defined(__powerpc__) && defined(BOOKE) +/* PowerPC booke has 64-bit physical pointers. */ +CTASSERT(sizeof(struct m_ext) == 184); +#else CTASSERT(sizeof(struct m_ext) == 180); +#endif #endif /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005071758.047Hw8aj071152>