mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
Fix the handling of MMU type in the AP entry code. The ARM_MMU_V6/V7
symbols are always #defined to 0 or 1, so use #if SYM not #if defined(SYM). Also, it helps if you include the header file that defines the symbols.
This commit is contained in:
parent
92ac3eb59f
commit
4863c75af7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=270862
@ -37,6 +37,7 @@
|
||||
#include <sys/syscall.h>
|
||||
#include <machine/asm.h>
|
||||
#include <machine/armreg.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/pte.h>
|
||||
|
||||
__FBSDID("$FreeBSD$");
|
||||
@ -389,9 +390,9 @@ ASENTRY_NP(mpentry)
|
||||
nop
|
||||
CPWAIT(r0)
|
||||
|
||||
#if defined(ARM_MMU_V6)
|
||||
#if ARM_MMU_V6
|
||||
bl armv6_idcache_inv_all /* Modifies r0 only */
|
||||
#elif defined(ARM_MMU_V7)
|
||||
#elif ARM_MMU_V7
|
||||
bl armv7_idcache_inv_all /* Modifies r0-r3, ip */
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user