arch: update `USERSPACE` dependencies
These symbols only need to exist if `USERSPACE` is enabled, not just if
the architecture supports it.
Signed-off-by: Jordan Yates <jordan@embeint.com>
diff --git a/arch/Kconfig b/arch/Kconfig
index 94e9a54..1b31a28 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -317,7 +317,7 @@
int "Size of privileged stack"
default 2048 if EMUL
default 1024
- depends on ARCH_HAS_USERSPACE
+ depends on USERSPACE
help
This option sets the privileged stack region size that will be used
in addition to the user mode thread stack. During normal execution,
@@ -331,14 +331,14 @@
default 512 if NO_OPTIMIZATIONS
default 512 if STACK_CANARIES && RISCV
default 256
- depends on ARCH_HAS_USERSPACE
+ depends on USERSPACE
help
Size of kernel object text area. Used in linker script.
config KOBJECT_DATA_AREA_RESERVE_EXTRA_PERCENT
int "Reserve extra kobject data area (in percentage)"
default 100
- depends on ARCH_HAS_USERSPACE
+ depends on USERSPACE
help
Multiplication factor used to calculate the size of placeholder to
reserve space for kobject metadata hash table. The hash table is
@@ -352,7 +352,7 @@
config KOBJECT_RODATA_AREA_EXTRA_BYTES
int "Reserve extra bytes for kobject rodata area"
default 16
- depends on ARCH_HAS_USERSPACE
+ depends on USERSPACE
help
Reserve a few more bytes for the RODATA region for kobject metadata.
This is to account for the uncertainty of tables generated by gperf.