Date: Thu, 02 Jul 2015 08:57:00 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 201268] Bug in elf_trampoline with ARMv7 processors Message-ID: <bug-201268-7@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201268 Bug ID: 201268 Summary: Bug in elf_trampoline with ARMv7 processors Product: Base System Version: 11.0-CURRENT Hardware: arm OS: Any Status: New Severity: Affects Many People Priority: --- Component: arm Assignee: freebsd-arm@FreeBSD.org Reporter: soutade@gmail.com Created attachment 158252 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=158252&action=edit 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. -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-201268-7>