FreeBSD Bugzilla – Attachment 158252 Details for
Bug 201268
Bug in elf_trampoline with ARMv7 processors
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Call get_cachetype_cp15() before cpu_idcache_wbinv_all()
elf_trampoline.patch (text/plain), 756 bytes, created by
Grégory Soutadé
on 2015-07-02 08:57:00 UTC
(
hide
)
Description:
Call get_cachetype_cp15() before cpu_idcache_wbinv_all()
Filename:
MIME Type:
Creator:
Grégory Soutadé
Created:
2015-07-02 08:57:00 UTC
Size:
756 bytes
patch
obsolete
>diff --git a/sys/arm/arm/elf_trampoline.c b/sys/arm/arm/elf_trampoline.c >index c3a7eed..776a020 100644 >--- a/sys/arm/arm/elf_trampoline.c >+++ b/sys/arm/arm/elf_trampoline.c >@@ -173,6 +173,7 @@ bzero(void *addr, int count) > } > > static void arm9_setup(void); >+static void get_cachetype_cp15(); > > void > _startC(void) >@@ -701,6 +702,9 @@ __start(void) > * Disable MMU. Otherwise, setup_pagetables call below > * might overwrite the L1 table we are currently using. > */ >+#if defined (CPU_CORTEXA) || defined (CPU_KRAIT) >+ get_cachetype_cp15(); >+#endif > cpu_idcache_wbinv_all(); > cpu_l2cache_wbinv_all(); > __asm __volatile("mrc p15, 0, %0, c1, c0, 0\n" >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 201268
: 158252