diff options
| author | Vladimir Kondratyev <wulf@FreeBSD.org> | 2023-12-24 08:20:01 +0000 |
|---|---|---|
| committer | Vladimir Kondratyev <wulf@FreeBSD.org> | 2023-12-24 08:20:01 +0000 |
| commit | 5a3bd281672bd6bd8e18081c3928dfe76d330a5f (patch) | |
| tree | b6c39b7f2814d12087ffc380c30231607370c3c7 /sys/compat/linuxkpi/common/include/linux/compat.h | |
| parent | 04952a9456e226460d1d95c42ea53861b1133b1a (diff) | |
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux/compat.h')
| -rw-r--r-- | sys/compat/linuxkpi/common/include/linux/compat.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/compat.h b/sys/compat/linuxkpi/common/include/linux/compat.h index d1a02f612f42..7922e884beb1 100644 --- a/sys/compat/linuxkpi/common/include/linux/compat.h +++ b/sys/compat/linuxkpi/common/include/linux/compat.h @@ -33,6 +33,11 @@ #include <sys/proc.h> #include <sys/malloc.h> +#if defined(__aarch64__) || defined(__arm__) || defined(__amd64__) || \ + defined(__i386__) || defined(__powerpc64__) +#define LKPI_HAVE_FPU_CTX +#endif + struct domainset; struct thread; struct task_struct; @@ -40,6 +45,7 @@ struct task_struct; extern int linux_alloc_current(struct thread *, int flags); extern void linux_free_current(struct task_struct *); extern struct domainset *linux_get_vm_domain_set(int node); +extern int linux_set_fpu_ctx(struct task_struct *); static inline void linux_set_current(struct thread *td) |
