]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blob - arch/sh/Kconfig
Kconfig: clean up the long arch list for the DEBUG_KMEMLEAK config option
[mirror_ubuntu-zesty-kernel.git] / arch / sh / Kconfig
1 config SUPERH
2 def_bool y
3 select EXPERT
4 select CLKDEV_LOOKUP
5 select HAVE_IDE if HAS_IOPORT
6 select HAVE_MEMBLOCK
7 select HAVE_MEMBLOCK_NODE_MAP
8 select ARCH_DISCARD_MEMBLOCK
9 select HAVE_OPROFILE
10 select HAVE_GENERIC_DMA_COHERENT
11 select HAVE_ARCH_TRACEHOOK
12 select HAVE_DMA_API_DEBUG
13 select HAVE_DMA_ATTRS
14 select HAVE_IRQ_WORK
15 select HAVE_PERF_EVENTS
16 select ARCH_HAVE_CUSTOM_GPIO_H
17 select ARCH_HAVE_NMI_SAFE_CMPXCHG if (GUSA_RB || CPU_SH4A)
18 select PERF_USE_VMALLOC
19 select HAVE_DEBUG_KMEMLEAK
20 select HAVE_KERNEL_GZIP
21 select HAVE_KERNEL_BZIP2
22 select HAVE_KERNEL_LZMA
23 select HAVE_KERNEL_XZ
24 select HAVE_KERNEL_LZO
25 select HAVE_UID16
26 select ARCH_WANT_IPC_PARSE_VERSION
27 select HAVE_SYSCALL_TRACEPOINTS
28 select HAVE_REGS_AND_STACK_ACCESS_API
29 select HAVE_GENERIC_HARDIRQS
30 select MAY_HAVE_SPARSE_IRQ
31 select IRQ_FORCED_THREADING
32 select RTC_LIB
33 select GENERIC_ATOMIC64
34 select GENERIC_IRQ_SHOW
35 select GENERIC_SMP_IDLE_THREAD
36 select GENERIC_CLOCKEVENTS
37 select GENERIC_CMOS_UPDATE if SH_SH03 || SH_DREAMCAST
38 select GENERIC_STRNCPY_FROM_USER
39 select GENERIC_STRNLEN_USER
40 help
41 The SuperH is a RISC processor targeted for use in embedded systems
42 and consumer electronics; it was also used in the Sega Dreamcast
43 gaming console. The SuperH port has a home page at
44 <http://www.linux-sh.org/>.
45
46 config SUPERH32
47 def_bool ARCH = "sh"
48 select HAVE_KPROBES
49 select HAVE_KRETPROBES
50 select HAVE_IOREMAP_PROT if MMU && !X2TLB
51 select HAVE_FUNCTION_TRACER
52 select HAVE_FTRACE_MCOUNT_RECORD
53 select HAVE_DYNAMIC_FTRACE
54 select HAVE_FUNCTION_TRACE_MCOUNT_TEST
55 select HAVE_FTRACE_NMI_ENTER if DYNAMIC_FTRACE
56 select ARCH_WANT_IPC_PARSE_VERSION
57 select HAVE_FUNCTION_GRAPH_TRACER
58 select HAVE_ARCH_KGDB
59 select HAVE_HW_BREAKPOINT
60 select HAVE_MIXED_BREAKPOINTS_REGS
61 select PERF_EVENTS
62 select ARCH_HIBERNATION_POSSIBLE if MMU
63 select SPARSE_IRQ
64
65 config SUPERH64
66 def_bool ARCH = "sh64"
67 select KALLSYMS
68
69 config ARCH_DEFCONFIG
70 string
71 default "arch/sh/configs/shx3_defconfig" if SUPERH32
72 default "arch/sh/configs/cayman_defconfig" if SUPERH64
73
74 config RWSEM_GENERIC_SPINLOCK
75 def_bool y
76
77 config RWSEM_XCHGADD_ALGORITHM
78 bool
79
80 config GENERIC_BUG
81 def_bool y
82 depends on BUG && SUPERH32
83
84 config GENERIC_CSUM
85 def_bool y
86 depends on SUPERH64
87
88 config GENERIC_HWEIGHT
89 def_bool y
90
91 config IRQ_PER_CPU
92 def_bool y
93
94 config GENERIC_GPIO
95 def_bool n
96
97 config GENERIC_CALIBRATE_DELAY
98 bool
99
100 config GENERIC_LOCKBREAK
101 def_bool y
102 depends on SMP && PREEMPT
103
104 config ARCH_SUSPEND_POSSIBLE
105 def_bool n
106
107 config ARCH_HIBERNATION_POSSIBLE
108 def_bool n
109
110 config SYS_SUPPORTS_APM_EMULATION
111 bool
112 select ARCH_SUSPEND_POSSIBLE
113
114 config SYS_SUPPORTS_HUGETLBFS
115 bool
116
117 config SYS_SUPPORTS_SMP
118 bool
119
120 config SYS_SUPPORTS_NUMA
121 bool
122
123 config SYS_SUPPORTS_PCI
124 bool
125
126 config SYS_SUPPORTS_CMT
127 bool
128
129 config SYS_SUPPORTS_MTU2
130 bool
131
132 config SYS_SUPPORTS_TMU
133 bool
134
135 config STACKTRACE_SUPPORT
136 def_bool y
137
138 config LOCKDEP_SUPPORT
139 def_bool y
140
141 config HAVE_LATENCYTOP_SUPPORT
142 def_bool y
143
144 config ARCH_HAS_ILOG2_U32
145 def_bool n
146
147 config ARCH_HAS_ILOG2_U64
148 def_bool n
149
150 config ARCH_NO_VIRT_TO_BUS
151 def_bool y
152
153 config ARCH_HAS_DEFAULT_IDLE
154 def_bool y
155
156 config NO_IOPORT
157 def_bool !PCI
158 depends on !SH_CAYMAN && !SH_SH4202_MICRODEV && !SH_SHMIN && \
159 !SH_HP6XX && !SH_SOLUTION_ENGINE
160
161 config IO_TRAPPED
162 bool
163
164 config SWAP_IO_SPACE
165 bool
166
167 config DMA_COHERENT
168 bool
169
170 config DMA_NONCOHERENT
171 def_bool !DMA_COHERENT
172
173 config NEED_DMA_MAP_STATE
174 def_bool DMA_NONCOHERENT
175
176 config NEED_SG_DMA_LENGTH
177 def_bool y
178
179 source "init/Kconfig"
180
181 source "kernel/Kconfig.freezer"
182
183 menu "System type"
184
185 #
186 # Processor families
187 #
188 config CPU_SH2
189 bool
190
191 config CPU_SH2A
192 bool
193 select CPU_SH2
194 select UNCACHED_MAPPING
195
196 config CPU_SH3
197 bool
198 select CPU_HAS_INTEVT
199 select CPU_HAS_SR_RB
200 select SYS_SUPPORTS_TMU
201
202 config CPU_SH4
203 bool
204 select CPU_HAS_INTEVT
205 select CPU_HAS_SR_RB
206 select CPU_HAS_FPU if !CPU_SH4AL_DSP
207 select SYS_SUPPORTS_TMU
208 select SYS_SUPPORTS_HUGETLBFS if MMU
209
210 config CPU_SH4A
211 bool
212 select CPU_SH4
213
214 config CPU_SH4AL_DSP
215 bool
216 select CPU_SH4A
217 select CPU_HAS_DSP
218
219 config CPU_SH5
220 bool
221 select CPU_HAS_FPU
222 select SYS_SUPPORTS_TMU
223 select SYS_SUPPORTS_HUGETLBFS if MMU
224
225 config CPU_SHX2
226 bool
227
228 config CPU_SHX3
229 bool
230 select DMA_COHERENT
231 select SYS_SUPPORTS_SMP
232 select SYS_SUPPORTS_NUMA
233
234 config ARCH_SHMOBILE
235 bool
236 select ARCH_SUSPEND_POSSIBLE
237 select PM
238 select PM_RUNTIME
239
240 config CPU_HAS_PMU
241 depends on CPU_SH4 || CPU_SH4A
242 default y
243 bool
244
245 if SUPERH32
246
247 choice
248 prompt "Processor sub-type selection"
249
250 #
251 # Processor subtypes
252 #
253
254 # SH-2 Processor Support
255
256 config CPU_SUBTYPE_SH7619
257 bool "Support SH7619 processor"
258 select CPU_SH2
259 select SYS_SUPPORTS_CMT
260
261 # SH-2A Processor Support
262
263 config CPU_SUBTYPE_SH7201
264 bool "Support SH7201 processor"
265 select CPU_SH2A
266 select CPU_HAS_FPU
267 select SYS_SUPPORTS_MTU2
268
269 config CPU_SUBTYPE_SH7203
270 bool "Support SH7203 processor"
271 select CPU_SH2A
272 select CPU_HAS_FPU
273 select SYS_SUPPORTS_CMT
274 select SYS_SUPPORTS_MTU2
275 select ARCH_WANT_OPTIONAL_GPIOLIB
276
277 config CPU_SUBTYPE_SH7206
278 bool "Support SH7206 processor"
279 select CPU_SH2A
280 select SYS_SUPPORTS_CMT
281 select SYS_SUPPORTS_MTU2
282
283 config CPU_SUBTYPE_SH7263
284 bool "Support SH7263 processor"
285 select CPU_SH2A
286 select CPU_HAS_FPU
287 select SYS_SUPPORTS_CMT
288 select SYS_SUPPORTS_MTU2
289
290 config CPU_SUBTYPE_SH7264
291 bool "Support SH7264 processor"
292 select CPU_SH2A
293 select CPU_HAS_FPU
294 select SYS_SUPPORTS_CMT
295 select SYS_SUPPORTS_MTU2
296
297 config CPU_SUBTYPE_SH7269
298 bool "Support SH7269 processor"
299 select CPU_SH2A
300 select CPU_HAS_FPU
301 select SYS_SUPPORTS_CMT
302 select SYS_SUPPORTS_MTU2
303
304 config CPU_SUBTYPE_MXG
305 bool "Support MX-G processor"
306 select CPU_SH2A
307 select SYS_SUPPORTS_MTU2
308 help
309 Select MX-G if running on an R8A03022BG part.
310
311 # SH-3 Processor Support
312
313 config CPU_SUBTYPE_SH7705
314 bool "Support SH7705 processor"
315 select CPU_SH3
316
317 config CPU_SUBTYPE_SH7706
318 bool "Support SH7706 processor"
319 select CPU_SH3
320 help
321 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
322
323 config CPU_SUBTYPE_SH7707
324 bool "Support SH7707 processor"
325 select CPU_SH3
326 help
327 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
328
329 config CPU_SUBTYPE_SH7708
330 bool "Support SH7708 processor"
331 select CPU_SH3
332 help
333 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
334 if you have a 100 Mhz SH-3 HD6417708R CPU.
335
336 config CPU_SUBTYPE_SH7709
337 bool "Support SH7709 processor"
338 select CPU_SH3
339 help
340 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
341
342 config CPU_SUBTYPE_SH7710
343 bool "Support SH7710 processor"
344 select CPU_SH3
345 select CPU_HAS_DSP
346 help
347 Select SH7710 if you have a SH3-DSP SH7710 CPU.
348
349 config CPU_SUBTYPE_SH7712
350 bool "Support SH7712 processor"
351 select CPU_SH3
352 select CPU_HAS_DSP
353 help
354 Select SH7712 if you have a SH3-DSP SH7712 CPU.
355
356 config CPU_SUBTYPE_SH7720
357 bool "Support SH7720 processor"
358 select CPU_SH3
359 select CPU_HAS_DSP
360 select SYS_SUPPORTS_CMT
361 select ARCH_WANT_OPTIONAL_GPIOLIB
362 select USB_ARCH_HAS_OHCI
363 select USB_OHCI_SH if USB_OHCI_HCD
364 help
365 Select SH7720 if you have a SH3-DSP SH7720 CPU.
366
367 config CPU_SUBTYPE_SH7721
368 bool "Support SH7721 processor"
369 select CPU_SH3
370 select CPU_HAS_DSP
371 select SYS_SUPPORTS_CMT
372 select USB_ARCH_HAS_OHCI
373 select USB_OHCI_SH if USB_OHCI_HCD
374 help
375 Select SH7721 if you have a SH3-DSP SH7721 CPU.
376
377 # SH-4 Processor Support
378
379 config CPU_SUBTYPE_SH7750
380 bool "Support SH7750 processor"
381 select CPU_SH4
382 help
383 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
384
385 config CPU_SUBTYPE_SH7091
386 bool "Support SH7091 processor"
387 select CPU_SH4
388 help
389 Select SH7091 if you have an SH-4 based Sega device (such as
390 the Dreamcast, Naomi, and Naomi 2).
391
392 config CPU_SUBTYPE_SH7750R
393 bool "Support SH7750R processor"
394 select CPU_SH4
395
396 config CPU_SUBTYPE_SH7750S
397 bool "Support SH7750S processor"
398 select CPU_SH4
399
400 config CPU_SUBTYPE_SH7751
401 bool "Support SH7751 processor"
402 select CPU_SH4
403 help
404 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
405 or if you have a HD6417751R CPU.
406
407 config CPU_SUBTYPE_SH7751R
408 bool "Support SH7751R processor"
409 select CPU_SH4
410
411 config CPU_SUBTYPE_SH7760
412 bool "Support SH7760 processor"
413 select CPU_SH4
414
415 config CPU_SUBTYPE_SH4_202
416 bool "Support SH4-202 processor"
417 select CPU_SH4
418
419 # SH-4A Processor Support
420
421 config CPU_SUBTYPE_SH7723
422 bool "Support SH7723 processor"
423 select CPU_SH4A
424 select CPU_SHX2
425 select ARCH_SHMOBILE
426 select ARCH_SPARSEMEM_ENABLE
427 select SYS_SUPPORTS_CMT
428 select ARCH_WANT_OPTIONAL_GPIOLIB
429 help
430 Select SH7723 if you have an SH-MobileR2 CPU.
431
432 config CPU_SUBTYPE_SH7724
433 bool "Support SH7724 processor"
434 select CPU_SH4A
435 select CPU_SHX2
436 select ARCH_SHMOBILE
437 select ARCH_SPARSEMEM_ENABLE
438 select SYS_SUPPORTS_CMT
439 select ARCH_WANT_OPTIONAL_GPIOLIB
440 help
441 Select SH7724 if you have an SH-MobileR2R CPU.
442
443 config CPU_SUBTYPE_SH7734
444 bool "Support SH7734 processor"
445 select CPU_SH4A
446 select CPU_SHX2
447 select ARCH_WANT_OPTIONAL_GPIOLIB
448 select USB_ARCH_HAS_OHCI
449 select USB_ARCH_HAS_EHCI
450 help
451 Select SH7734 if you have a SH4A SH7734 CPU.
452
453 config CPU_SUBTYPE_SH7757
454 bool "Support SH7757 processor"
455 select CPU_SH4A
456 select CPU_SHX2
457 select ARCH_WANT_OPTIONAL_GPIOLIB
458 select USB_ARCH_HAS_OHCI
459 select USB_ARCH_HAS_EHCI
460 help
461 Select SH7757 if you have a SH4A SH7757 CPU.
462
463 config CPU_SUBTYPE_SH7763
464 bool "Support SH7763 processor"
465 select CPU_SH4A
466 select USB_ARCH_HAS_OHCI
467 select USB_OHCI_SH if USB_OHCI_HCD
468 help
469 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
470
471 config CPU_SUBTYPE_SH7770
472 bool "Support SH7770 processor"
473 select CPU_SH4A
474
475 config CPU_SUBTYPE_SH7780
476 bool "Support SH7780 processor"
477 select CPU_SH4A
478
479 config CPU_SUBTYPE_SH7785
480 bool "Support SH7785 processor"
481 select CPU_SH4A
482 select CPU_SHX2
483 select ARCH_SPARSEMEM_ENABLE
484 select SYS_SUPPORTS_NUMA
485 select ARCH_WANT_OPTIONAL_GPIOLIB
486
487 config CPU_SUBTYPE_SH7786
488 bool "Support SH7786 processor"
489 select CPU_SH4A
490 select CPU_SHX3
491 select CPU_HAS_PTEAEX
492 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
493 select ARCH_WANT_OPTIONAL_GPIOLIB
494 select USB_ARCH_HAS_OHCI
495 select USB_OHCI_SH if USB_OHCI_HCD
496 select USB_ARCH_HAS_EHCI
497 select USB_EHCI_SH if USB_EHCI_HCD
498
499 config CPU_SUBTYPE_SHX3
500 bool "Support SH-X3 processor"
501 select CPU_SH4A
502 select CPU_SHX3
503 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
504 select ARCH_REQUIRE_GPIOLIB
505
506 # SH4AL-DSP Processor Support
507
508 config CPU_SUBTYPE_SH7343
509 bool "Support SH7343 processor"
510 select CPU_SH4AL_DSP
511 select ARCH_SHMOBILE
512 select SYS_SUPPORTS_CMT
513
514 config CPU_SUBTYPE_SH7722
515 bool "Support SH7722 processor"
516 select CPU_SH4AL_DSP
517 select CPU_SHX2
518 select ARCH_SHMOBILE
519 select ARCH_SPARSEMEM_ENABLE
520 select SYS_SUPPORTS_NUMA
521 select SYS_SUPPORTS_CMT
522 select ARCH_WANT_OPTIONAL_GPIOLIB
523
524 config CPU_SUBTYPE_SH7366
525 bool "Support SH7366 processor"
526 select CPU_SH4AL_DSP
527 select CPU_SHX2
528 select ARCH_SHMOBILE
529 select ARCH_SPARSEMEM_ENABLE
530 select SYS_SUPPORTS_NUMA
531 select SYS_SUPPORTS_CMT
532
533 endchoice
534
535 endif
536
537 if SUPERH64
538
539 choice
540 prompt "Processor sub-type selection"
541
542 # SH-5 Processor Support
543
544 config CPU_SUBTYPE_SH5_101
545 bool "Support SH5-101 processor"
546 select CPU_SH5
547
548 config CPU_SUBTYPE_SH5_103
549 bool "Support SH5-103 processor"
550 select CPU_SH5
551
552 endchoice
553
554 endif
555
556 source "arch/sh/mm/Kconfig"
557
558 source "arch/sh/Kconfig.cpu"
559
560 source "arch/sh/boards/Kconfig"
561
562 menu "Timer and clock configuration"
563
564 config SH_TIMER_TMU
565 bool "TMU timer driver"
566 depends on SYS_SUPPORTS_TMU
567 default y
568 help
569 This enables the build of the TMU timer driver.
570
571 config SH_TIMER_CMT
572 bool "CMT timer driver"
573 depends on SYS_SUPPORTS_CMT
574 default y
575 help
576 This enables build of the CMT timer driver.
577
578 config SH_TIMER_MTU2
579 bool "MTU2 timer driver"
580 depends on SYS_SUPPORTS_MTU2
581 default y
582 help
583 This enables build of the MTU2 timer driver.
584
585 config SH_PCLK_FREQ
586 int "Peripheral clock frequency (in Hz)"
587 depends on SH_CLK_CPG_LEGACY
588 default "31250000" if CPU_SUBTYPE_SH7619
589 default "33333333" if CPU_SUBTYPE_SH7770 || \
590 CPU_SUBTYPE_SH7760 || \
591 CPU_SUBTYPE_SH7705 || \
592 CPU_SUBTYPE_SH7203 || \
593 CPU_SUBTYPE_SH7206 || \
594 CPU_SUBTYPE_SH7263 || \
595 CPU_SUBTYPE_MXG
596 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
597 default "66000000" if CPU_SUBTYPE_SH4_202
598 default "50000000"
599 help
600 This option is used to specify the peripheral clock frequency.
601 This is necessary for determining the reference clock value on
602 platforms lacking an RTC.
603
604 config SH_CLK_CPG
605 def_bool y
606
607 config SH_CLK_CPG_LEGACY
608 depends on SH_CLK_CPG
609 def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE && \
610 !CPU_SHX3 && !CPU_SUBTYPE_SH7757 && \
611 !CPU_SUBTYPE_SH7734 && !CPU_SUBTYPE_SH7264 && \
612 !CPU_SUBTYPE_SH7269
613
614 endmenu
615
616 menu "CPU Frequency scaling"
617
618 source "drivers/cpufreq/Kconfig"
619
620 config SH_CPU_FREQ
621 tristate "SuperH CPU Frequency driver"
622 depends on CPU_FREQ
623 select CPU_FREQ_TABLE
624 help
625 This adds the cpufreq driver for SuperH. Any CPU that supports
626 clock rate rounding through the clock framework can use this
627 driver. While it will make the kernel slightly larger, this is
628 harmless for CPUs that don't support rate rounding. The driver
629 will also generate a notice in the boot log before disabling
630 itself if the CPU in question is not capable of rate rounding.
631
632 For details, take a look at <file:Documentation/cpu-freq>.
633
634 If unsure, say N.
635
636 endmenu
637
638 source "arch/sh/drivers/Kconfig"
639
640 endmenu
641
642 menu "Kernel features"
643
644 source kernel/Kconfig.hz
645
646 config KEXEC
647 bool "kexec system call (EXPERIMENTAL)"
648 depends on SUPERH32 && EXPERIMENTAL && MMU
649 help
650 kexec is a system call that implements the ability to shutdown your
651 current kernel, and to start another kernel. It is like a reboot
652 but it is independent of the system firmware. And like a reboot
653 you can start any kernel with it, not just Linux.
654
655 The name comes from the similarity to the exec system call.
656
657 It is an ongoing process to be certain the hardware in a machine
658 is properly shutdown, so do not be surprised if this code does not
659 initially work for you. It may help to enable device hotplugging
660 support. As of this writing the exact hardware interface is
661 strongly in flux, so no good recommendation can be made.
662
663 config CRASH_DUMP
664 bool "kernel crash dumps (EXPERIMENTAL)"
665 depends on SUPERH32 && EXPERIMENTAL && BROKEN_ON_SMP
666 help
667 Generate crash dump after being started by kexec.
668 This should be normally only set in special crash dump kernels
669 which are loaded in the main kernel with kexec-tools into
670 a specially reserved region and then later executed after
671 a crash by kdump/kexec. The crash dump kernel must be compiled
672 to a memory address not used by the main kernel using
673 PHYSICAL_START.
674
675 For more details see Documentation/kdump/kdump.txt
676
677 config KEXEC_JUMP
678 bool "kexec jump (EXPERIMENTAL)"
679 depends on SUPERH32 && KEXEC && HIBERNATION && EXPERIMENTAL
680 help
681 Jump between original kernel and kexeced kernel and invoke
682 code via KEXEC
683
684 config PHYSICAL_START
685 hex "Physical address where the kernel is loaded" if (EXPERT || CRASH_DUMP)
686 default MEMORY_START
687 ---help---
688 This gives the physical address where the kernel is loaded
689 and is ordinarily the same as MEMORY_START.
690
691 Different values are primarily used in the case of kexec on panic
692 where the fail safe kernel needs to run at a different address
693 than the panic-ed kernel.
694
695 config SECCOMP
696 bool "Enable seccomp to safely compute untrusted bytecode"
697 depends on PROC_FS
698 help
699 This kernel feature is useful for number crunching applications
700 that may need to compute untrusted bytecode during their
701 execution. By using pipes or other transports made available to
702 the process as file descriptors supporting the read/write
703 syscalls, it's possible to isolate those applications in
704 their own address space using seccomp. Once seccomp is
705 enabled via prctl, it cannot be disabled and the task is only
706 allowed to execute a few safe syscalls defined by each seccomp
707 mode.
708
709 If unsure, say N.
710
711 config CC_STACKPROTECTOR
712 bool "Enable -fstack-protector buffer overflow detection (EXPERIMENTAL)"
713 depends on SUPERH32 && EXPERIMENTAL
714 help
715 This option turns on the -fstack-protector GCC feature. This
716 feature puts, at the beginning of functions, a canary value on
717 the stack just before the return address, and validates
718 the value just before actually returning. Stack based buffer
719 overflows (that need to overwrite this return address) now also
720 overwrite the canary, which gets detected and the attack is then
721 neutralized via a kernel panic.
722
723 This feature requires gcc version 4.2 or above.
724
725 config SMP
726 bool "Symmetric multi-processing support"
727 depends on SYS_SUPPORTS_SMP
728 select USE_GENERIC_SMP_HELPERS
729 ---help---
730 This enables support for systems with more than one CPU. If you have
731 a system with only one CPU, like most personal computers, say N. If
732 you have a system with more than one CPU, say Y.
733
734 If you say N here, the kernel will run on single and multiprocessor
735 machines, but will use only one CPU of a multiprocessor machine. If
736 you say Y here, the kernel will run on many, but not all,
737 singleprocessor machines. On a singleprocessor machine, the kernel
738 will run faster if you say N here.
739
740 People using multiprocessor machines who say Y here should also say
741 Y to "Enhanced Real Time Clock Support", below.
742
743 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
744 available at <http://www.tldp.org/docs.html#howto>.
745
746 If you don't know what to do here, say N.
747
748 config NR_CPUS
749 int "Maximum number of CPUs (2-32)"
750 range 2 32
751 depends on SMP
752 default "4" if CPU_SUBTYPE_SHX3
753 default "2"
754 help
755 This allows you to specify the maximum number of CPUs which this
756 kernel will support. The maximum supported value is 32 and the
757 minimum value which makes sense is 2.
758
759 This is purely to save memory - each supported CPU adds
760 approximately eight kilobytes to the kernel image.
761
762 config HOTPLUG_CPU
763 bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
764 depends on SMP && HOTPLUG && EXPERIMENTAL
765 help
766 Say Y here to experiment with turning CPUs off and on. CPUs
767 can be controlled through /sys/devices/system/cpu.
768
769 source "kernel/Kconfig.preempt"
770
771 config GUSA
772 def_bool y
773 depends on !SMP && SUPERH32
774 help
775 This enables support for gUSA (general UserSpace Atomicity).
776 This is the default implementation for both UP and non-ll/sc
777 CPUs, and is used by the libc, amongst others.
778
779 For additional information, design information can be found
780 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
781
782 This should only be disabled for special cases where alternate
783 atomicity implementations exist.
784
785 config GUSA_RB
786 bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
787 depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
788 help
789 Enabling this option will allow the kernel to implement some
790 atomic operations using a software implementation of load-locked/
791 store-conditional (LLSC). On machines which do not have hardware
792 LLSC, this should be more efficient than the other alternative of
793 disabling interrupts around the atomic sequence.
794
795 config HW_PERF_EVENTS
796 bool "Enable hardware performance counter support for perf events"
797 depends on PERF_EVENTS && CPU_HAS_PMU
798 default y
799 help
800 Enable hardware performance counter support for perf events. If
801 disabled, perf events will use software events only.
802
803 source "drivers/sh/Kconfig"
804
805 endmenu
806
807 menu "Boot options"
808
809 config ZERO_PAGE_OFFSET
810 hex
811 default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
812 SH_7751_SOLUTION_ENGINE
813 default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
814 default "0x00002000" if PAGE_SIZE_8KB
815 default "0x00001000"
816 help
817 This sets the default offset of zero page.
818
819 config BOOT_LINK_OFFSET
820 hex
821 default "0x00210000" if SH_SHMIN
822 default "0x00400000" if SH_CAYMAN
823 default "0x00810000" if SH_7780_SOLUTION_ENGINE
824 default "0x009e0000" if SH_TITAN
825 default "0x01800000" if SH_SDK7780
826 default "0x02000000" if SH_EDOSK7760
827 default "0x00800000"
828 help
829 This option allows you to set the link address offset of the zImage.
830 This can be useful if you are on a board which has a small amount of
831 memory.
832
833 config ENTRY_OFFSET
834 hex
835 default "0x00001000" if PAGE_SIZE_4KB
836 default "0x00002000" if PAGE_SIZE_8KB
837 default "0x00004000" if PAGE_SIZE_16KB
838 default "0x00010000" if PAGE_SIZE_64KB
839 default "0x00000000"
840
841 config ROMIMAGE_MMCIF
842 bool "Include MMCIF loader in romImage (EXPERIMENTAL)"
843 depends on CPU_SUBTYPE_SH7724 && EXPERIMENTAL
844 help
845 Say Y here to include experimental MMCIF loading code in
846 romImage. With this enabled it is possible to write the romImage
847 kernel image to an MMC card and boot the kernel straight from
848 the reset vector. At reset the processor Mask ROM will load the
849 first part of the romImage which in turn loads the rest the kernel
850 image to RAM using the MMCIF hardware block.
851
852 choice
853 prompt "Kernel command line"
854 optional
855 default CMDLINE_OVERWRITE
856 help
857 Setting this option allows the kernel command line arguments
858 to be set.
859
860 config CMDLINE_OVERWRITE
861 bool "Overwrite bootloader kernel arguments"
862 help
863 Given string will overwrite any arguments passed in by
864 a bootloader.
865
866 config CMDLINE_EXTEND
867 bool "Extend bootloader kernel arguments"
868 help
869 Given string will be concatenated with arguments passed in
870 by a bootloader.
871
872 endchoice
873
874 config CMDLINE
875 string "Kernel command line arguments string"
876 depends on CMDLINE_OVERWRITE || CMDLINE_EXTEND
877 default "console=ttySC1,115200"
878
879 endmenu
880
881 menu "Bus options"
882
883 config SUPERHYWAY
884 tristate "SuperHyway Bus support"
885 depends on CPU_SUBTYPE_SH4_202
886
887 config MAPLE
888 bool "Maple Bus support"
889 depends on SH_DREAMCAST
890 help
891 The Maple Bus is SEGA's serial communication bus for peripherals
892 on the Dreamcast. Without this bus support you won't be able to
893 get your Dreamcast keyboard etc to work, so most users
894 probably want to say 'Y' here, unless you are only using the
895 Dreamcast with a serial line terminal or a remote network
896 connection.
897
898 config PCI
899 bool "PCI support"
900 depends on SYS_SUPPORTS_PCI
901 select PCI_DOMAINS
902 select GENERIC_PCI_IOMAP
903 select NO_GENERIC_PCI_IOPORT_MAP
904 help
905 Find out whether you have a PCI motherboard. PCI is the name of a
906 bus system, i.e. the way the CPU talks to the other stuff inside
907 your box. If you have PCI, say Y, otherwise N.
908
909 config PCI_DOMAINS
910 bool
911
912 source "drivers/pci/pcie/Kconfig"
913
914 source "drivers/pci/Kconfig"
915
916 source "drivers/pcmcia/Kconfig"
917
918 source "drivers/pci/hotplug/Kconfig"
919
920 endmenu
921
922 menu "Executable file formats"
923
924 source "fs/Kconfig.binfmt"
925
926 endmenu
927
928 menu "Power management options (EXPERIMENTAL)"
929 depends on EXPERIMENTAL
930
931 source "kernel/power/Kconfig"
932
933 source "drivers/cpuidle/Kconfig"
934
935 endmenu
936
937 source "net/Kconfig"
938
939 source "drivers/Kconfig"
940
941 source "fs/Kconfig"
942
943 source "arch/sh/Kconfig.debug"
944
945 source "security/Kconfig"
946
947 source "crypto/Kconfig"
948
949 source "lib/Kconfig"