| To: | linux-mips@oss.sgi.com |
|---|---|
| Subject: | [PATCH] save a cyle in LOAD_PTE asm macro |
| From: | Florian Lohoff <flo@rfc822.org> |
| Date: | Sun, 28 Jan 2001 17:05:56 +0100 |
| Organization: | rfc822 - pure communication |
| Sender: | owner-linux-mips@oss.sgi.com |
| User-agent: | Mutt/1.2.5i |
Hi,
shouldnt the srl at least stall for a cycle on interlocked CPUs ?
Index: arch/mips/kernel/r4k_misc.S
===================================================================
RCS file: /cvs/linux/arch/mips/kernel/r4k_misc.S,v
retrieving revision 1.10
diff -u -r1.10 r4k_misc.S
--- arch/mips/kernel/r4k_misc.S 2000/12/14 21:39:51 1.10
+++ arch/mips/kernel/r4k_misc.S 2001/01/28 16:03:44
@@ -37,8 +37,8 @@
*/
#define LOAD_PTE(pte, ptr) \
mfc0 pte, CP0_BADVADDR; \
- srl pte, pte, 22; \
lw ptr, current_pgd; \
+ srl pte, pte, 22; \
sll pte, pte, 2; \
addu ptr, ptr, pte; \
mfc0 pte, CP0_BADVADDR; \
--
Florian Lohoff flo@rfc822.org +49-5201-669912
Why is it called "common sense" when nobody seems to have any?
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Cross compiling RPMs, Ralf Baechle |
|---|---|
| Next by Date: | [RESUME] R3000 swapping problems, Florian Lohoff |
| Previous by Thread: | A few memory map updates, Maciej W. Rozycki |
| Next by Thread: | [RESUME] R3000 swapping problems, Florian Lohoff |
| Indexes: | [Date] [Thread] [Top] [All Lists] |