diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2020-10-13 17:26:12 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2020-10-13 17:26:12 +0000 |
| commit | 4ef6ea38fc88875af9b3425ae625b97c734c641b (patch) | |
| tree | f42650d9c204a5051365e6fad1e9ec81362f6d90 | |
| parent | 155e58651386d0a71147138513e6eb35d4a207c3 (diff) | |
Notes
| -rw-r--r-- | share/man/man9/fpu_kern.9 | 3 | ||||
| -rw-r--r-- | sys/crypto/aesni/aesni.c | 4 | ||||
| -rw-r--r-- | sys/crypto/aesni/aesni.h | 4 | ||||
| -rw-r--r-- | sys/crypto/blake2/blake2_cryptodev.c | 4 | ||||
| -rw-r--r-- | sys/crypto/via/padlock.h | 4 | ||||
| -rw-r--r-- | sys/i386/include/fpu.h | 6 |
6 files changed, 8 insertions, 17 deletions
diff --git a/share/man/man9/fpu_kern.9 b/share/man/man9/fpu_kern.9 index 8fcf82605af2f..9b0da289ef40a 100644 --- a/share/man/man9/fpu_kern.9 +++ b/share/man/man9/fpu_kern.9 @@ -23,13 +23,14 @@ .\" .\" $FreeBSD$ .\" -.Dd March 7, 2018 +.Dd October 13, 2020 .Dt FPU_KERN 9 .Os .Sh NAME .Nm fpu_kern .Nd "facility to use the FPU in the kernel" .Sh SYNOPSIS +.In machine/fpu.h .Ft struct fpu_kern_ctx * .Fn fpu_kern_alloc_ctx "u_int flags" .Ft void diff --git a/sys/crypto/aesni/aesni.c b/sys/crypto/aesni/aesni.c index 3a5a9e0fb1fea..b0fba99b02ef5 100644 --- a/sys/crypto/aesni/aesni.c +++ b/sys/crypto/aesni/aesni.c @@ -60,11 +60,7 @@ __FBSDID("$FreeBSD$"); #include <machine/md_var.h> #include <machine/specialreg.h> -#if defined(__i386__) -#include <machine/npx.h> -#elif defined(__amd64__) #include <machine/fpu.h> -#endif static struct mtx_padalign *ctx_mtx; static struct fpu_kern_ctx **ctx_fpu; diff --git a/sys/crypto/aesni/aesni.h b/sys/crypto/aesni/aesni.h index 548f61f1bc222..ef1a6635f6add 100644 --- a/sys/crypto/aesni/aesni.h +++ b/sys/crypto/aesni/aesni.h @@ -40,10 +40,6 @@ #include <machine/cputypes.h> #include <machine/md_var.h> #include <machine/specialreg.h> -#endif -#if defined(__i386__) -#include <machine/npx.h> -#elif defined(__amd64__) #include <machine/fpu.h> #endif diff --git a/sys/crypto/blake2/blake2_cryptodev.c b/sys/crypto/blake2/blake2_cryptodev.c index fcb3ec56059d2..50828b0334d6d 100644 --- a/sys/crypto/blake2/blake2_cryptodev.c +++ b/sys/crypto/blake2/blake2_cryptodev.c @@ -43,11 +43,7 @@ __FBSDID("$FreeBSD$"); #include <opencrypto/cryptodev.h> #include <cryptodev_if.h> -#if defined(__amd64__) #include <machine/fpu.h> -#elif defined(__i386__) -#include <machine/npx.h> -#endif struct blake2_session { size_t mlen; diff --git a/sys/crypto/via/padlock.h b/sys/crypto/via/padlock.h index 9e0d28abf3bcc..a22e88ba6ee90 100644 --- a/sys/crypto/via/padlock.h +++ b/sys/crypto/via/padlock.h @@ -32,11 +32,7 @@ #include <opencrypto/cryptodev.h> #include <crypto/rijndael/rijndael.h> -#if defined(__i386__) -#include <machine/npx.h> -#elif defined(__amd64__) #include <machine/fpu.h> -#endif union padlock_cw { uint64_t raw; diff --git a/sys/i386/include/fpu.h b/sys/i386/include/fpu.h new file mode 100644 index 0000000000000..5d1bd89da94f0 --- /dev/null +++ b/sys/i386/include/fpu.h @@ -0,0 +1,6 @@ +/*- + * This file is in the public domain. + * + * $FreeBSD$ + */ +#include <machine/npx.h> |
