linux-mips
[Top] [All Lists]

Question: about Physical Address mapping

To: linux-mips@linux-mips.org
Subject: Question: about Physical Address mapping
From: "Dennis.Yxun" <dennis.yxun@gmail.com>
Date: Mon, 7 Dec 2009 15:39:15 +0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=rrB6iqrsspkvWD09xu0DGxKmbycwnyF/NNXck+c4+ao=; b=beTUz4EIwwIfvMJyS0umrJM2Ec+TO4jDVdyBtfKakzrQVoj6WbJVEq3uZvsr5rpB6M RXXW8qsdfLVAs59tFxFhH7jY2Y5Q4xuISOoANSqNRTc9u7JysrkO8bkmgsKE+CAabnI7 hrE6MTh3wQB+obbKLtPhROT9sNINpaQ9waDrs=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=F6RZ290/fQmt1vKuo5Owj72/uxvr7lInDUJwGjXYej/zVUexYUATEJhL9pSQfvQAxI IeO3RIhUXZBcTdtMJlKRuGhJlvHKmkkjnJM/9I3pB29f/byKi+xL+y7n1J2rw+zVWzU4 3NBIVxHr/uiKCyYn+ABadJ/3jbVmjNXZ3HCqY=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
HI ALL:
   I have a problem, that our MIPS hardware put registers location from 0x7000,0000 -0x7040,0000.
So, I need to init TLB to access those registers.
   My question is: can I map those range to Kseg2 (mapped,uncached)? I found "add_wired_entry" sit in
kernel code, seems I should use this function.

   I found code in arch/mips/jazz/irq.c, and the comment tells me
/* Map 0xe4000000 -> 0x0:600005C0, 0xe4100000 -> 400005C0 */
   add_wired_entry(0x01800017, 0x01000017, 0xe4000000, PM_4M);

does that mean after add_wired_entry, virtual address 0xe400,0000 map to physical address 0x600005C0?
why the address is 0x6000,05C0, not 0x6000,0000

Thanks

Dennis
<Prev in Thread] Current Thread [Next in Thread>