Bug 201268 - Bug in elf_trampoline with ARMv7 processors
Summary: Bug in elf_trampoline with ARMv7 processors
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: CURRENT
Hardware: arm Any
: --- Affects Many People
Assignee: freebsd-arm (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-02 08:57 UTC by Grégory Soutadé
Modified: 2019-01-16 03:51 UTC (History)
1 user (show)

See Also:


Attachments
Call get_cachetype_cp15() before cpu_idcache_wbinv_all() (756 bytes, patch)
2015-07-02 08:57 UTC, Grégory Soutadé
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Grégory Soutadé 2015-07-02 08:57:00 UTC
Created attachment 158252 [details]
Call get_cachetype_cp15() before cpu_idcache_wbinv_all()

In elf_trampoline.c, we call cpu_idcache_wbinv_all() after kernel decompression.

For CortexA (and KRAIT) processors, this call is mapped to armv7_idcache_wbinv_all(). armv7_idcache_wbinv_all() itself does reference to "coherency_level" and "cache_type" variables. These variables should have been initialized by get_cachetype_cp15() which is not called in our case. The attached patch fix it.
Comment 1 Oleksandr Tymoshenko freebsd_committer freebsd_triage 2019-01-16 03:51:51 UTC
ARMv6/ARMv7 support for ELF trampoline was removed in base r325439. Closing as OBE.