linux-mips
[Top] [All Lists]

[PATCH]:

To: Ralf Baechle <ralf@linux-mips.org>, mipslist <linux-mips@linux-mips.org>
Subject: [PATCH]:
From: Juan Quintela <quintela@mandrakesoft.com>
Date: 19 Dec 2002 21:00:46 +0100
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hi
        - pte_val() returs a long, print it directly.
        - flags needs to be unsigedn long, not unsigned int.

Later, Juan.


Later, Juan.

Index: arch/mips64/mm/tlb-r4k.c
===================================================================
RCS file: /home/cvs/linux/arch/mips64/mm/tlb-r4k.c,v
retrieving revision 1.1.2.5
diff -u -r1.1.2.5 tlb-r4k.c
--- arch/mips64/mm/tlb-r4k.c    2 Dec 2002 00:24:53 -0000       1.1.2.5
+++ arch/mips64/mm/tlb-r4k.c    19 Dec 2002 19:48:44 -0000
@@ -244,7 +244,7 @@
        pmd = pmd_offset(pgd, addr);
        pte = pte_offset(pmd, addr);
        page = *pte;
-       printk("Memory Mapping: VA = %08x, PA = %08x ", addr, (unsigned int) 
pte_val(page));
+       printk("Memory Mapping: VA = %08x, PA = %08x ", addr, pte_val(page));
        val = pte_val(page);
        if (val & _PAGE_PRESENT) printk("present ");
        if (val & _PAGE_READ) printk("read ");
@@ -259,7 +259,7 @@
 
 void show_tlb(void)
 {
-        unsigned int flags;
+        unsigned long flags;
         unsigned int old_ctx;
        unsigned int entry;
        unsigned int entrylo0, entrylo1, entryhi;


-- 
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy

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