1# Copyright (c) 2019-2020 Cobham Gaisler AB
2# SPDX-License-Identifier: Apache-2.0
3
4menu "SPARC Options"
5	depends on SPARC
6
7config ARCH
8	default "sparc"
9
10config SPARC_NWIN
11	int "Number of register windows"
12	default 8
13	help
14	  Number of implemented register windows.
15
16config GEN_ISR_TABLES
17	default y
18
19config GEN_IRQ_VECTOR_TABLE
20	default n
21
22config GEN_SW_ISR_TABLE
23	default y
24
25config NUM_IRQS
26	int
27	default 32
28
29config SPARC_SVT
30	bool "Single-vector trapping"
31	help
32	  Use Single-vector trapping (SVT). Defined by SPARC-V8 Embedded (V8E)
33	  Architecture Specification and available in some LEON processors.
34
35config SPARC_CASA
36	bool "CASA instructions"
37	help
38	  Use CASA atomic instructions. Defined by SPARC V9 and available
39	  in some LEON processors.
40
41# The SPARC V8 ABI allocates a stack frame of minimum 96 byte for each SAVE
42# instruction so we bump the kernel default values.
43config MAIN_STACK_SIZE
44	default 4096 if COVERAGE_GCOV
45	default 2048
46
47config IDLE_STACK_SIZE
48	default 1024
49
50config ISR_STACK_SIZE
51	default 4096
52
53config TEST_EXTRA_STACK_SIZE
54	default 4096 if COVERAGE_GCOV
55	default 2048
56
57config IPM_CONSOLE_STACK_SIZE
58	default 4096 if COVERAGE_GCOV
59	default 1024
60
61config NET_TX_STACK_SIZE
62	default 2048
63
64config NET_RX_STACK_SIZE
65	default 2048
66
67endmenu
68