ARM: Don't misuse ARM_TP_ADDRESS as ARMv4 / ARMv6 selector.
This commit is contained in:
parent
477aff3eae
commit
4ac8a40011
@ -427,10 +427,8 @@ cpu_startup(void *dummy)
|
||||
{
|
||||
struct pcb *pcb = thread0.td_pcb;
|
||||
const unsigned int mbyte = 1024 * 1024;
|
||||
#ifdef ARM_TP_ADDRESS
|
||||
#ifndef ARM_CACHE_LOCK_ENABLE
|
||||
#if __ARM_ARCH < 6 && !defined(ARM_CACHE_LOCK_ENABLE)
|
||||
vm_page_t m;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
identify_arm_cpu();
|
||||
@ -459,8 +457,6 @@ cpu_startup(void *dummy)
|
||||
#if __ARM_ARCH < 6
|
||||
vector_page_setprot(VM_PROT_READ);
|
||||
pmap_postinit();
|
||||
#endif
|
||||
#ifdef ARM_TP_ADDRESS
|
||||
#ifdef ARM_CACHE_LOCK_ENABLE
|
||||
pmap_kenter_user(ARM_TP_ADDRESS, ARM_TP_ADDRESS);
|
||||
arm_lock_cache_line(ARM_TP_ADDRESS);
|
||||
|
Loading…
Reference in New Issue
Block a user