mirror of
https://github.com/torvalds/linux.git
synced 2024-12-22 10:56:40 +00:00
942fa985e9
All new 32-bit architectures should have 64-bit userspace off_t type, but existing architectures has 32-bit ones. To enforce the rule, new config option is added to arch/Kconfig that defaults ARCH_32BIT_OFF_T to be disabled for new 32-bit architectures. All existing 32-bit architectures enable it explicitly. New option affects force_o_largefile() behaviour. Namely, if userspace off_t is 64-bits long, we have no reason to reject user to open big files. Note that even if architectures has only 64-bit off_t in the kernel (arc, c6x, h8300, hexagon, nios2, openrisc, and unicore32), a libc may use 32-bit off_t, and therefore want to limit the file size to 4GB unless specified differently in the open flags. Signed-off-by: Yury Norov <ynorov@caviumnetworks.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Yury Norov <ynorov@marvell.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
107 lines
2.1 KiB
Plaintext
107 lines
2.1 KiB
Plaintext
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see Documentation/kbuild/kconfig-language.txt.
|
|
#
|
|
|
|
config NDS32
|
|
def_bool y
|
|
select ARCH_32BIT_OFF_T
|
|
select ARCH_HAS_SYNC_DMA_FOR_CPU
|
|
select ARCH_HAS_SYNC_DMA_FOR_DEVICE
|
|
select ARCH_WANT_FRAME_POINTERS if FTRACE
|
|
select CLKSRC_MMIO
|
|
select CLONE_BACKWARDS
|
|
select COMMON_CLK
|
|
select GENERIC_ATOMIC64
|
|
select GENERIC_CPU_DEVICES
|
|
select GENERIC_CLOCKEVENTS
|
|
select GENERIC_IRQ_CHIP
|
|
select GENERIC_IRQ_SHOW
|
|
select GENERIC_LIB_ASHLDI3
|
|
select GENERIC_LIB_ASHRDI3
|
|
select GENERIC_LIB_CMPDI2
|
|
select GENERIC_LIB_LSHRDI3
|
|
select GENERIC_LIB_MULDI3
|
|
select GENERIC_LIB_UCMPDI2
|
|
select GENERIC_STRNCPY_FROM_USER
|
|
select GENERIC_STRNLEN_USER
|
|
select GENERIC_TIME_VSYSCALL
|
|
select HANDLE_DOMAIN_IRQ
|
|
select HAVE_ARCH_TRACEHOOK
|
|
select HAVE_DEBUG_KMEMLEAK
|
|
select HAVE_EXIT_THREAD
|
|
select HAVE_REGS_AND_STACK_ACCESS_API
|
|
select HAVE_PERF_EVENTS
|
|
select IRQ_DOMAIN
|
|
select LOCKDEP_SUPPORT
|
|
select MODULES_USE_ELF_RELA
|
|
select OF
|
|
select OF_EARLY_FLATTREE
|
|
select NO_IOPORT_MAP
|
|
select RTC_LIB
|
|
select THREAD_INFO_IN_TASK
|
|
select HAVE_FUNCTION_TRACER
|
|
select HAVE_FUNCTION_GRAPH_TRACER
|
|
select HAVE_FTRACE_MCOUNT_RECORD
|
|
select HAVE_DYNAMIC_FTRACE
|
|
help
|
|
Andes(nds32) Linux support.
|
|
|
|
config GENERIC_CALIBRATE_DELAY
|
|
def_bool y
|
|
|
|
config GENERIC_CSUM
|
|
def_bool y
|
|
|
|
config GENERIC_HWEIGHT
|
|
def_bool y
|
|
|
|
config GENERIC_LOCKBREAK
|
|
def_bool y
|
|
depends on PREEMPT
|
|
|
|
config RWSEM_GENERIC_SPINLOCK
|
|
def_bool y
|
|
|
|
config TRACE_IRQFLAGS_SUPPORT
|
|
def_bool y
|
|
|
|
config STACKTRACE_SUPPORT
|
|
def_bool y
|
|
|
|
config FIX_EARLYCON_MEM
|
|
def_bool y
|
|
|
|
config PGTABLE_LEVELS
|
|
default 2
|
|
|
|
menu "System Type"
|
|
source "arch/nds32/Kconfig.cpu"
|
|
config NR_CPUS
|
|
int
|
|
default 1
|
|
|
|
config MMU
|
|
def_bool y
|
|
|
|
config NDS32_BUILTIN_DTB
|
|
string "Builtin DTB"
|
|
default ""
|
|
help
|
|
User can use it to specify the dts of the SoC
|
|
endmenu
|
|
|
|
menu "Kernel Features"
|
|
source "kernel/Kconfig.hz"
|
|
endmenu
|
|
|
|
menu "Power management options"
|
|
config SYS_SUPPORTS_APM_EMULATION
|
|
bool
|
|
|
|
config ARCH_SUSPEND_POSSIBLE
|
|
def_bool y
|
|
|
|
source "kernel/power/Kconfig"
|
|
endmenu
|