genode/repos/base-hw/src/core/spec/arm/kernel
Stefan Kalkowski 6d48b5484d hw: correct the ARM cache maintainance operations
This commit fixes the following issues regarding cache maintainance
under ARM:

* read out I-, and D-cache line size at runtime and use the correct one
* remove 'update_data_region' call from unprivileged syscalls
* rename 'update_instr_region' syscall to 'cache_coherent_region' to
  reflect what it doing, namely make I-, and D-cache coherent
* restrict 'cache_coherent_region' syscall to one page at a time
* lookup the region given in a 'cache_coherent_region' syscall in the
  page-table of the PD to prevent machine exceptions in the kernel
* only clean D-cache lines, do not invalidate them when pages where
  added on Cortex-A8 and ARMv6 (MMU sees phys. memory here)
* remove unused code relicts of cache maintainance

In addition it introduces per architecture memory clearance functions
used by core, when preparing new dataspaces. Thereby, it optimizes:

* on ARMv7 using per-word assignments
* on ARMv8 using cacheline zeroing
* on x86_64 using 'rept stosq' assembler instruction

Fix #3685
2020-03-26 11:38:55 +01:00
..
cpu.cc hw: improve cross-cpu synchronization 2019-01-07 12:25:44 +01:00
lock.cc hw: implement power-saving kernel lock for ARM smp 2019-04-01 19:33:47 +02:00
panic.cc hw: replace lock-safe log variants in kernel 2019-04-09 12:30:35 +02:00
pd.cc hw: change update_pd to invalidate_tlb 2019-07-09 08:55:22 +02:00
thread.cc hw: correct the ARM cache maintainance operations 2020-03-26 11:38:55 +01:00