freebsd-skq/sys/arm/at91
Konstantin Belousov edc8222303 Make kstack_pages a tunable on arm, x86, and powepc. On i386, the
initial thread stack is not adjusted by the tunable, the stack is
allocated too early to get access to the kernel environment. See
TD0_KSTACK_PAGES for the thread0 stack sizing on i386.

The tunable was tested on x86 only.  From the visual inspection, it
seems that it might work on arm and powerpc.  The arm
USPACE_SVC_STACK_TOP and powerpc USPACE macros seems to be already
incorrect for the threads with non-default kstack size.  I only
changed the macros to use variable instead of constant, since I cannot
test.

On arm64, mips and sparc64, some static data structures are sized by
KSTACK_PAGES, so the tunable is disabled.

Sponsored by:	The FreeBSD Foundation
MFC after:	2 week
2015-08-10 17:18:21 +00:00
..
at91_aic.c
at91_aicreg.h
at91_cfata.c
at91_common.c
at91_gpio.h
at91_machdep.c Make kstack_pages a tunable on arm, x86, and powepc. On i386, the 2015-08-10 17:18:21 +00:00
at91_mci.c
at91_mcireg.h
at91_pdcreg.h
at91_pinctrl.c
at91_pio_sam9g20.h
at91_pio_sam9g45.h
at91_pio.c
at91_pioreg.h
at91_piovar.h
at91_pit.c
at91_pitreg.h
at91_pmc.c
at91_pmcreg.h
at91_pmcvar.h
at91_reset.S
at91_rst.c
at91_rstreg.h
at91_rtc.c
at91_rtcreg.h
at91_sdramc.c
at91_shdwc.c
at91_smc.c
at91_smc.h
at91_spi.c
at91_spireg.h
at91_ssc.c
at91_sscreg.h
at91_st.c
at91_streg.h
at91_tcb.c
at91_twi.c
at91_twiio.h
at91_twireg.h
at91_usartreg.h
at91_wdt.c
at91_wdtreg.h
at91.c
at91board.h
at91reg.h
at91rm92reg.h
at91rm9200_devices.c
at91rm9200.c
at91rm9200var.h
at91sam9g20.c
at91sam9g20reg.h
at91sam9g45.c
at91sam9g45reg.h
at91sam9x5.c
at91sam9x5reg.h
at91sam9260.c
at91sam9260reg.h
at91soc.c
at91soc.h
at91var.h
board_bwct.c
board_eb9200.c
board_ethernut5.c
board_hl200.c
board_hl201.c
board_kb920x.c
board_qila9g20.c
board_sam9g20ek.c
board_sam9x25ek.c
board_sam9260ek.c
board_sn9g45.c
board_tsc4370.c
files.at91
if_ate.c
if_atereg.h
if_macb.c
if_macbreg.h
if_macbvar.h
std.at91
std.at91sam9
std.at91sam9g45
std.atmel
std.bwct
std.eb9200
std.ethernut5
std.hl200
std.hl201
std.kb920x
std.qila9g20
std.sam9g20ek
std.sam9x25ek
std.sam9260ek
std.sn9g45
std.tsc4370
uart_bus_at91usart.c
uart_cpu_at91usart.c
uart_dev_at91usart.c