summaryrefslogtreecommitdiffstats
path: root/sys/libkern
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2017-05-19 21:18:42 +0000
committermarkj <markj@FreeBSD.org>2017-05-19 21:18:42 +0000
commit4b95edc5000baac0b2f2655468f6700873ddbc2e (patch)
tree0aa64dfd4ad76e3558d94bc03efd2c59c6823558 /sys/libkern
parentaa31a9c714d080b080b3a38fadf83e35bebf0c03 (diff)
downloadFreeBSD-src-4b95edc5000baac0b2f2655468f6700873ddbc2e.zip
FreeBSD-src-4b95edc5000baac0b2f2655468f6700873ddbc2e.tar.gz
Direct commit to fix the PC98 build.
Diffstat (limited to 'sys/libkern')
-rw-r--r--sys/libkern/crc32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/libkern/crc32.c b/sys/libkern/crc32.c
index 6bc469e..281c4b6 100644
--- a/sys/libkern/crc32.c
+++ b/sys/libkern/crc32.c
@@ -755,7 +755,7 @@ calculate_crc32c(uint32_t crc32c,
const unsigned char *buffer,
unsigned int length)
{
-#if defined(__amd64__) || defined(__i386__)
+#if defined(__amd64__) || (defined(__i386__) && !defined(PC98))
if ((cpu_feature2 & CPUID2_SSE42) != 0) {
return (sse42_crc32c(crc32c, buffer, length));
} else
OpenPOWER on IntegriCloud