[Bug 201268] Bug in elf_trampoline with ARMv7 processors

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jul 2 08:57:00 UTC 2015


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 at FreeBSD.org
          Reporter: soutade at 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.


More information about the freebsd-arm mailing list