From: 914059751@qq.com (rocky)
To: linux-arm-kernel@lists.infradead.org
Subject: 答复: ARM1176 goes wild when MMU on line
Date: Tue, 20 Oct 2009 18:18:59 +0800 [thread overview]
Message-ID: <0EDD94343D3747C4B7953C144F2E8800@dufan> (raw)
In-Reply-To: <761ea48b0910200259i7b98aa41i25af3beb58b56cda@mail.gmail.com>
ARM1176 is definitely an ARMv7 VMSA! Its CPUID is:0x410FB764, check the
following code to see how does kernel code decide which architecture
operation procedure to use.
BTW: S3C6410 is also based on ARM1176 core, it uses ARMv7 cache calls as
well.
--------------- Arch/arm/boot/compressed/head.S -------------------
/*
* Here follow the relocatable cache support functions for the
* various processors. This is a generic hook for locating an
* entry and jumping to an instruction at the specified offset
* from the start of the block. Please note this is all position
* independent code.
*
* r1 = corrupted
* r2 = corrupted
* r3 = block offset
* r6 = corrupted
* r12 = corrupted
*/
call_cache_fn: adr r12, proc_types
#ifdef CONFIG_CPU_CP15
mrc p15, 0, r6, c0, c0 @ get processor ID
#else
ldr r6, =CONFIG_PROCESSOR_ID
#endif
1: ldr r1, [r12, #0] @ get value
ldr r2, [r12, #4] @ get mask
eor r1, r1, r6 @ (real ^ match)
tst r1, r2 @ & mask
addeq pc, r12, r3 @ call cache function
add r12, r12, #4*5
b 1b
proc_types
.word 0x000f0000 @ new CPU Id
.word 0x000f0000
b __armv7_mmu_cache_on
b __armv7_mmu_cache_off
b __armv7_mmu_cache_flush
-----????-----
???: Laurent Desnogues [mailto:laurent.desnogues at gmail.com]
????: 2009?10?20? 18:00
???: ???
??: linux-arm-kernel
??: Re: ARM1176 goes wild when MMU on line
2009/10/20 ??? <914059751@qq.com>:
> ARM1176 has ARMv7 VMSA. ?Am I?missing something obvious?
Is that a typo? ARM1176 is an ARMv6 chip, not an ARMv7 one.
Laurent
next prev parent reply other threads:[~2009-10-20 10:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-20 9:49 ARM1176 goes wild when MMU on line 胡杨树
2009-10-20 9:59 ` Laurent Desnogues
2009-10-20 10:18 ` rocky [this message]
2009-10-20 10:26 ` 答复: " Laurent Desnogues
[not found] ` <000001ca5616$3add4790$1b46010a@Emea.Arm.com>
2009-10-26 8:43 ` rocky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0EDD94343D3747C4B7953C144F2E8800@dufan \
--to=914059751@qq.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox