Detect HAVE_LARGE_STACKS at compile time

Move HAVE_LARGE_STACKS definitions to header and set when appropriate.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Allan Jude <allan@klarasystems.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Kevin Bowling <kbowling@FreeBSD.org>
Closes #12350
This commit is contained in:
Kevin Bowling
2021-07-16 13:28:55 -07:00
committed by GitHub
parent b17b19943e
commit ca14e08cbf
6 changed files with 13 additions and 32 deletions
@@ -25,5 +25,10 @@
#include <linux/dcache_compat.h>
#include <linux/utsname_compat.h>
#include <linux/module.h>
#if THREAD_SIZE >= 16384
#define HAVE_LARGE_STACKS 1
#endif
#endif