]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Maximize available kva space by doing static device mapping from the top
authorIan Lepore <ian@FreeBSD.org>
Sat, 26 Oct 2013 23:13:20 +0000 (23:13 +0000)
committerIan Lepore <ian@FreeBSD.org>
Sat, 26 Oct 2013 23:13:20 +0000 (23:13 +0000)
commitec4081c10a46bacdbd0fd1ada699f1fd21999944
treed06fe6a80c4c005b7d437147317a29d6fe7128c5
parent0b8a792e0b6f3d2a1b2544e48ad6f57a6804a6f3
Maximize available kva space by doing static device mapping from the top
of the address space downwards, and then returning the lowest mapped
device address from initarm_lastaddr().  This adds over 500MB of kva
space compared to the old way of hardcoding the end address as 0xE0000000.

Also, pre-map most of the SoC's common memory-mapped devices using 1MB
section mappings so that all device access uses just a few TLB entries.
Graphics devices aren't mapped this way yet, but probably should be.

To provide this new functionality without pasting identical code into
multiple imxNN_machdep.c files, rework the imx machdep code so that
things common to the whole family of SoCs are in a new imx_machdep.c file.
The rewritten imxNN_machdep.c files contain just things specific to an
individual SoC.
sys/arm/freescale/imx/files.imx51
sys/arm/freescale/imx/files.imx53
sys/arm/freescale/imx/imx51_machdep.c
sys/arm/freescale/imx/imx53_machdep.c
sys/arm/freescale/imx/imx_machdep.c [new file with mode: 0644]
sys/arm/freescale/imx/imx_machdep.h [new file with mode: 0644]