9
0
Fork 0
barebox/arch/openrisc/include/asm
Sascha Hauer b792124a7d rework remap_range
remap_range is for remapping regions with different cache attributes.
It is implemented for ARM and PowerPC only, the other architectures only
provide stubs.
Currently the new cache attributes are passed in an architecture specific
way and the attributes have to be retrieved by calls to
mmu_get_pte_cached_flags() and mmu_get_pte_uncached_flags().
Make this simpler by providing architecture independent flags which can
be directly passed to remap_range()
Also provide a MAP_ARCH_DEFAULT flag and a arch_can_remap() function.
The MAP_ARCH_DEFAULT defaults to whatever caching type the architecture
has as default. the arch_can_remap() function returns true if the
architecture can change the cache attributes, false otherwise. This
allows the memtest code to better find out what it has to do.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-11-03 07:27:44 +01:00
..
bitops Add OpenRISC arch 2012-01-02 12:50:56 +01:00
barebox.h Add OpenRISC arch 2012-01-02 12:50:56 +01:00
bitops.h consistently use the same bitops.h file 2014-07-17 07:43:58 +02:00
bitsperlong.h introduce bitsperlong.h for remaining architectures 2015-06-03 09:53:56 +02:00
byteorder.h Add OpenRISC arch 2012-01-02 12:50:56 +01:00
cache.h Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
common.h Add OpenRISC arch 2012-01-02 12:50:56 +01:00
dma.h blackfin, mips, openrisc, ppc, sandbox, x86: add generic dma_alloc, dma_free inlines 2012-06-30 12:46:25 +02:00
elf.h Add OpenRISC arch 2012-01-02 12:50:56 +01:00
io.h openrisc: Use generic io accessors 2014-04-09 19:31:41 +02:00
mmu.h rework remap_range 2015-11-03 07:27:44 +01:00
openrisc_exc.h Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
posix_types.h openrisc: use generic posix_types.h 2015-06-03 09:53:57 +02:00
ptrace.h Add OpenRISC arch 2012-01-02 12:50:56 +01:00
sections.h Add OpenRISC arch 2012-01-02 12:50:56 +01:00
spr-defs.h openrisc: update SPR registers definition 2014-05-22 08:07:21 +02:00
string.h Add OpenRISC arch 2012-01-02 12:50:56 +01:00
swab.h Add OpenRISC arch 2012-01-02 12:50:56 +01:00
system.h Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
types.h introduce bitsperlong.h for remaining architectures 2015-06-03 09:53:56 +02:00
unaligned.h openrisc: Add unaligned support 2012-09-04 09:08:39 +02:00