2015-05-21 00:40:39 +08:00
|
|
|
# Kconfig - x86 general configuration options
|
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2014-2015 Wind River Systems, Inc.
|
|
|
|
#
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted provided that the following conditions are met:
|
|
|
|
#
|
|
|
|
# 1) Redistributions of source code must retain the above copyright notice,
|
|
|
|
# this list of conditions and the following disclaimer.
|
|
|
|
#
|
|
|
|
# 2) Redistributions in binary form must reproduce the above copyright notice,
|
|
|
|
# this list of conditions and the following disclaimer in the documentation
|
|
|
|
# and/or other materials provided with the distribution.
|
|
|
|
#
|
|
|
|
# 3) Neither the name of Wind River Systems nor the names of its contributors
|
|
|
|
# may be used to endorse or promote products derived from this software without
|
|
|
|
# specific prior written permission.
|
|
|
|
#
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
|
|
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
|
|
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
# POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
#
|
|
|
|
|
2015-05-26 22:31:43 +08:00
|
|
|
config X86_32
|
2015-07-30 02:23:26 +08:00
|
|
|
def_bool y
|
2015-05-26 22:31:43 +08:00
|
|
|
|
|
|
|
config ARCH_DEFCONFIG
|
2015-07-30 02:23:26 +08:00
|
|
|
string
|
2015-07-30 02:37:10 +08:00
|
|
|
default "arch/x86/defconfig"
|
2015-05-26 22:31:43 +08:00
|
|
|
|
|
|
|
source "kernel/Kconfig"
|
|
|
|
|
|
|
|
source "misc/Kconfig"
|
2015-05-21 00:40:39 +08:00
|
|
|
|
2015-07-24 22:36:18 +08:00
|
|
|
menu "General Platform Configuration"
|
2015-06-10 22:25:07 +08:00
|
|
|
|
|
|
|
choice
|
2015-07-24 22:36:18 +08:00
|
|
|
prompt "Platform Selection"
|
2015-07-24 22:29:17 +08:00
|
|
|
default PLATFORM_IA32_PCI
|
2015-06-10 22:25:07 +08:00
|
|
|
|
2015-09-20 11:49:34 +08:00
|
|
|
config PLATFORM_GALILEO
|
|
|
|
bool "Galileo Gen2"
|
|
|
|
select HPET_TIMER
|
|
|
|
select EOI_HANDLER_SUPPORTED
|
|
|
|
select BOOTLOADER_UNKNOWN
|
|
|
|
select PCI
|
|
|
|
help
|
|
|
|
The Intel® Galileo Gen 2 development board is a microcontroller board
|
|
|
|
based on the Intel® Quark™ SoC X1000 application processor, a 32-bit
|
|
|
|
Intel® Pentium® brand system on a chip (SoC). It is the first board
|
|
|
|
based on Intel® architecture designed to be hardware and software
|
|
|
|
pin-compatible with shields designed for the Arduino Uno* R3.
|
|
|
|
|
2015-07-24 22:29:17 +08:00
|
|
|
config PLATFORM_IA32_PCI
|
|
|
|
bool "IA32 with PCI"
|
2015-06-10 22:25:07 +08:00
|
|
|
select HPET_TIMER
|
|
|
|
select EOI_HANDLER_SUPPORTED
|
|
|
|
select BOOTLOADER_UNKNOWN
|
|
|
|
select PCI
|
|
|
|
|
2015-07-24 22:36:18 +08:00
|
|
|
config PLATFORM_IA32
|
|
|
|
bool "IA32"
|
|
|
|
select EOI_HANDLER_SUPPORTED
|
|
|
|
select BOOTLOADER_UNKNOWN
|
2015-06-10 22:25:07 +08:00
|
|
|
|
2015-07-24 22:36:18 +08:00
|
|
|
endchoice
|
2015-06-10 22:25:07 +08:00
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Intel Processor"
|
2015-07-11 02:17:56 +08:00
|
|
|
default CPU_MINUTEIA
|
2015-06-10 22:25:07 +08:00
|
|
|
|
2015-06-12 05:05:13 +08:00
|
|
|
config CPU_ATOM
|
|
|
|
bool "Atom"
|
2015-07-23 01:34:59 +08:00
|
|
|
select CMOV
|
2015-06-12 05:05:13 +08:00
|
|
|
help
|
|
|
|
This option signifies the use of a CPU from the Atom family.
|
|
|
|
|
2015-06-10 22:25:07 +08:00
|
|
|
config CPU_MINUTEIA
|
|
|
|
bool "Minute IA"
|
2015-07-30 03:35:52 +08:00
|
|
|
select CPU_FLOAT_UNSUPPORTED
|
2015-06-10 22:25:07 +08:00
|
|
|
help
|
|
|
|
This option signifies the use of a CPU from the Minute IA family.
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config CPU_MIGHT_SUPPORT_CLFLUSH
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
help
|
2015-07-06 23:09:47 +08:00
|
|
|
If a platform uses a processor that possibly implements CLFLUSH, change
|
|
|
|
the default in that platform's config file.
|
2015-06-10 22:25:07 +08:00
|
|
|
|
2015-07-30 02:37:10 +08:00
|
|
|
#FIXME This option is not being used in the current code base.
|
2015-06-10 22:25:07 +08:00
|
|
|
config CLFLUSH_INSTRUCTION_SUPPORTED
|
|
|
|
bool
|
|
|
|
prompt "CLFLUSH instruction supported" if CPU_MIGHT_SUPPORT_CLFLUSH
|
|
|
|
depends on CPU_MIGHT_SUPPORT_CLFLUSH
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Only enable this if the CLFLUSH instruction is supported, so that
|
|
|
|
an implementation of _SysCacheFlush() that uses CLFLUSH is made
|
|
|
|
available, instead of the one using WBINVD.
|
|
|
|
|
2015-07-30 01:59:01 +08:00
|
|
|
menu "Platform Capabilities"
|
2015-08-04 22:05:24 +08:00
|
|
|
config ADVANCED_IDLE_SUPPORTED
|
|
|
|
bool "Advanced Idle Supported"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option signifies that the target supports the ADVANCED_IDLE
|
|
|
|
configuration option.
|
|
|
|
|
|
|
|
config BOI_HANDLER_SUPPORTED
|
2015-07-30 01:59:01 +08:00
|
|
|
bool "BOI Handler Supported"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option signifies that the target has one or more devices whose
|
|
|
|
driver utilizes a "beginning of interrupt" handler that gets called
|
|
|
|
before the standard interrupt handling code. This capability
|
|
|
|
can be used by the driver to suppress spurious interrupts generated
|
|
|
|
by the device (or for other purposes).
|
|
|
|
|
|
|
|
config EOI_HANDLER_SUPPORTED
|
|
|
|
bool "EOI Handler Supported"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option signifies that the target has one or more devices whose
|
|
|
|
driver utilizes an "end of interrupt" handler that gets called
|
|
|
|
after the standard interrupt handling code. This capability
|
|
|
|
can be used by the driver to tell the device that an interrupt
|
|
|
|
has been handled (or for other purposes).
|
|
|
|
|
|
|
|
config UNALIGNED_WRITE_UNSUPPORTED
|
|
|
|
bool "Unaligned Write Unsupported"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option signifies that the target may not properly decode the
|
|
|
|
IA-32 processor's byte enable (BE) lines, resulting in the inability
|
|
|
|
to read/write unaligned quantities.
|
|
|
|
|
|
|
|
config LOCK_INSTRUCTION_UNSUPPORTED
|
|
|
|
bool "Lock Instruction Unsupported"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option signifies that the target lacks support for the IA-32
|
|
|
|
LOCK prefix instruction. Code running on such targets cannot
|
|
|
|
use the LOCK prefix to perform read-modify-write operations in an
|
|
|
|
atomic manner; such targets must utilize other techniques to perform
|
|
|
|
atomic operations (such as locking interrupts).
|
|
|
|
|
2015-08-04 22:05:24 +08:00
|
|
|
config NUM_DYNAMIC_STUBS
|
|
|
|
int "Number of dynamic int stubs"
|
|
|
|
default 0
|
|
|
|
help
|
|
|
|
This option specifies the number of interrupt handlers that can be
|
|
|
|
installed dynamically using irq_connect().
|
|
|
|
|
2015-09-10 02:25:04 +08:00
|
|
|
config PIC_DISABLE
|
|
|
|
bool "Disable PIC"
|
2015-08-04 22:05:24 +08:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option disables all interrupts on the PIC
|
|
|
|
|
2015-07-30 01:59:01 +08:00
|
|
|
endmenu
|
|
|
|
|
2015-08-04 22:59:37 +08:00
|
|
|
menu "Processor Capabilities"
|
2015-06-10 22:25:07 +08:00
|
|
|
|
|
|
|
config ISA_IA32
|
|
|
|
bool
|
2015-07-30 02:37:10 +08:00
|
|
|
default y
|
2015-06-10 22:25:07 +08:00
|
|
|
help
|
|
|
|
This option signifies the use of a CPU based on the Intel IA-32
|
|
|
|
instruction set architecture.
|
|
|
|
|
2015-07-23 01:34:59 +08:00
|
|
|
config CMOV
|
|
|
|
def_bool n
|
2015-06-10 22:25:07 +08:00
|
|
|
help
|
2015-07-23 01:34:59 +08:00
|
|
|
This option signifies the use of an Intel CPU that supports
|
|
|
|
the CMOV instruction.
|
2015-06-10 22:25:07 +08:00
|
|
|
|
|
|
|
config CPU_FLOAT_UNSUPPORTED
|
2015-07-30 03:35:52 +08:00
|
|
|
def_bool n
|
2015-06-10 22:25:07 +08:00
|
|
|
select CPU_SSE_UNSUPPORTED
|
|
|
|
help
|
|
|
|
This option signifies the use of an Intel CPU that lacks support
|
|
|
|
for floating point operations.
|
|
|
|
|
|
|
|
config CPU_SSE_UNSUPPORTED
|
2015-07-30 03:35:52 +08:00
|
|
|
def_bool n
|
2015-06-10 22:25:07 +08:00
|
|
|
help
|
|
|
|
This option signifies the use of an Intel CPU that lacks support
|
|
|
|
for SSEx instructions (i.e. those which pre-date Pentium III).
|
|
|
|
|
|
|
|
config CACHE_LINE_SIZE
|
|
|
|
int "Cache line size"
|
2015-07-11 02:17:56 +08:00
|
|
|
default 64 if CPU_ATOM
|
2015-06-10 22:25:07 +08:00
|
|
|
default 0
|
|
|
|
help
|
|
|
|
Size in bytes of a CPU cache line.
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
2015-03-13 06:15:28 +08:00
|
|
|
menu "Floating Point Options"
|
|
|
|
depends on !CPU_FLOAT_UNSUPPORTED
|
|
|
|
|
|
|
|
config FLOAT
|
|
|
|
bool
|
|
|
|
prompt "Floating point instructions"
|
|
|
|
default n
|
|
|
|
select FP_SHARING if ENHANCED_SECURITY
|
|
|
|
help
|
|
|
|
This option enables the use of x87 FPU and MMX instructions by
|
|
|
|
a task or fiber.
|
|
|
|
|
|
|
|
Disabling this option means that any task or fiber that uses a
|
|
|
|
floating point instruction will get a fatal exception.
|
|
|
|
|
|
|
|
config FP_SHARING
|
|
|
|
bool
|
|
|
|
prompt "Floating point resource sharing" if !ENHANCED_SECURITY
|
|
|
|
depends on FLOAT
|
|
|
|
default n
|
|
|
|
select AUTOMATIC_FP_ENABLING if ENHANCED_SECURITY
|
|
|
|
help
|
|
|
|
This option allows multiple tasks and fibers to safely utilize
|
|
|
|
floating point hardware resources. Every task or fiber that wishes
|
|
|
|
to use floating point instructions (i.e. x87 FPU, MMX, or SSEx) must
|
|
|
|
be created with such support already enabled, or must enable this
|
|
|
|
support via task_float_enable() or fiber_float_enable() before
|
|
|
|
executing these instructions.
|
|
|
|
|
|
|
|
Enabling this option adds 108 bytes to the stack size requirement
|
|
|
|
of each task or fiber that utilizes x87 FPU or MMX instructions,
|
|
|
|
and adds 464 bytes to the stack size requirement of each task or
|
|
|
|
fiber that utilizes SSEx instructions. (The stack size requirement
|
|
|
|
of tasks and fibers that do not utilize floating point instructions
|
|
|
|
remains unchanged.)
|
|
|
|
|
|
|
|
Disabling this option means that only a single task or fiber may
|
|
|
|
utilize x87 FPU, MMX, or SSEx instructions. (The stack size
|
|
|
|
requirement of all tasks and fibers remains unchanged.)
|
|
|
|
|
|
|
|
config AUTOMATIC_FP_ENABLING
|
|
|
|
bool
|
|
|
|
prompt "Automatically enable floating point resource sharing" \
|
|
|
|
if !ENHANCED_SECURITY
|
|
|
|
depends on FP_SHARING
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option allows tasks and fibers to safely utilize floating
|
|
|
|
point hardware resources without requiring them to first indicate
|
|
|
|
their intention to do so. The system automatically detects when
|
|
|
|
a task or fiber that does not currently have floating point support
|
|
|
|
enabled uses a floating point instruction, and automatically executes
|
|
|
|
task_float_enable() or fiber_float_enable() on its behalf. The
|
|
|
|
task or fiber is enabled for using x87 FPU, MMX, or SSEx instructions
|
|
|
|
if SSE is configured, otherwise it is enabled for using x87 FPU or
|
|
|
|
MMX instructions only.
|
|
|
|
|
2015-08-01 04:52:22 +08:00
|
|
|
config SSE
|
|
|
|
bool
|
|
|
|
prompt "SSEx instructions"
|
|
|
|
depends on FLOAT && !CPU_SSE_UNSUPPORTED
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option enables the use of SSEx instructions by a task or fiber.
|
|
|
|
|
|
|
|
Disabling this option means that no task or fiber may use SSEx
|
|
|
|
instructions; any such use will result in undefined behavior.
|
|
|
|
|
|
|
|
config SSE_FP_MATH
|
|
|
|
bool
|
|
|
|
prompt "Compiler-generated SSEx instructions" if FP_SHARING
|
|
|
|
depends on SSE
|
|
|
|
default n if FP_SHARING
|
|
|
|
default y if !FP_SHARING
|
|
|
|
help
|
|
|
|
This option allows the compiler to generate SSEx instructions for
|
|
|
|
performing floating point math. This can greatly improve performance
|
|
|
|
when exactly the same operations are to be performed on multiple
|
|
|
|
data objects; however, it can also significantly reduce performance
|
|
|
|
when pre-emptive task switches occur because of the larger register
|
|
|
|
set that must be saved and restored.
|
|
|
|
|
|
|
|
Disabling this option means that the compiler utilizes only the
|
|
|
|
x87 instruction set for floating point operations.
|
|
|
|
|
2015-03-13 06:15:28 +08:00
|
|
|
config XIP
|
|
|
|
default n
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
2015-06-20 22:38:01 +08:00
|
|
|
|
2015-07-30 01:59:01 +08:00
|
|
|
source "arch/x86/core/Kconfig"
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
2015-07-24 22:36:18 +08:00
|
|
|
if PLATFORM_IA32
|
2015-07-17 03:47:25 +08:00
|
|
|
source "arch/x86/platforms/ia32/Kconfig"
|
2015-03-13 06:15:28 +08:00
|
|
|
endif
|
|
|
|
|
2015-07-24 22:29:17 +08:00
|
|
|
if PLATFORM_IA32_PCI
|
2015-07-17 03:47:25 +08:00
|
|
|
source "arch/x86/platforms/ia32_pci/Kconfig"
|
2015-03-13 06:15:28 +08:00
|
|
|
endif
|
|
|
|
|
2015-09-20 11:49:34 +08:00
|
|
|
if PLATFORM_GALILEO
|
|
|
|
source "arch/x86/platforms/galileo/Kconfig"
|
|
|
|
endif
|
|
|
|
|
2015-05-26 22:31:43 +08:00
|
|
|
source "drivers/Kconfig"
|
|
|
|
|
|
|
|
source "net/Kconfig"
|