* [PATCH]:
@ 2002-12-18 1:42 Juan Quintela
2002-12-18 19:29 ` [PATCH]: Ralf Baechle
0 siblings, 1 reply; 7+ messages in thread
From: Juan Quintela @ 2002-12-18 1:42 UTC (permalink / raw)
To: linux mips mailing list, Ralf Baechle
Hi
ArcRead() usses funny types :(
Later, Juan.a
PD. Someone can explain me what mean:
__attribute__ ((__mode__ (__SI__)));
The SI part don't appear in the gcc info pages :(
Index: arch/mips/sgi-ip22/ip22-time.c
===================================================================
RCS file: /home/cvs/linux/arch/mips/sgi-ip22/ip22-time.c,v
retrieving revision 1.1.2.10
diff -u -r1.1.2.10 ip22-time.c
--- arch/mips/sgi-ip22/ip22-time.c 2 Dec 2002 00:24:50 -0000 1.1.2.10
+++ arch/mips/sgi-ip22/ip22-time.c 18 Dec 2002 00:49:20 -0000
@@ -195,7 +195,7 @@
{
int cpu = smp_processor_id();
int irq = SGI_8254_0_IRQ;
- long cnt;
+ ULONG cnt;
char c;
irq_enter(cpu, irq);
--
In theory, practice and theory are the same, but in practice they
are different -- Larry McVoy
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH]:
2002-12-18 1:42 [PATCH]: Juan Quintela
@ 2002-12-18 19:29 ` Ralf Baechle
2002-12-18 21:41 ` [PATCH]: Juan Quintela
0 siblings, 1 reply; 7+ messages in thread
From: Ralf Baechle @ 2002-12-18 19:29 UTC (permalink / raw)
To: Juan Quintela; +Cc: linux mips mailing list
On Wed, Dec 18, 2002 at 02:42:25AM +0100, Juan Quintela wrote:
> PD. Someone can explain me what mean:
> __attribute__ ((__mode__ (__SI__)));
>
> The SI part don't appear in the gcc info pages :(
Single Integer, a 32-bit integer.
Ralf
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH]:
2002-12-18 19:29 ` [PATCH]: Ralf Baechle
@ 2002-12-18 21:41 ` Juan Quintela
2002-12-18 22:35 ` [PATCH]: Ralf Baechle
0 siblings, 1 reply; 7+ messages in thread
From: Juan Quintela @ 2002-12-18 21:41 UTC (permalink / raw)
To: Ralf Baechle; +Cc: linux mips mailing list
>>>>> "ralf" == Ralf Baechle <ralf@linux-mips.org> writes:
ralf> On Wed, Dec 18, 2002 at 02:42:25AM +0100, Juan Quintela wrote:
>> PD. Someone can explain me what mean:
>> __attribute__ ((__mode__ (__SI__)));
>>
>> The SI part don't appear in the gcc info pages :(
ralf> Single Integer, a 32-bit integer.
Changing the code to u32 & friends will be acepted?
Later, Juan.
--
In theory, practice and theory are the same, but in practice they
are different -- Larry McVoy
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH]:
2002-12-18 21:41 ` [PATCH]: Juan Quintela
@ 2002-12-18 22:35 ` Ralf Baechle
0 siblings, 0 replies; 7+ messages in thread
From: Ralf Baechle @ 2002-12-18 22:35 UTC (permalink / raw)
To: Juan Quintela; +Cc: linux mips mailing list
On Wed, Dec 18, 2002 at 10:41:03PM +0100, Juan Quintela wrote:
> ralf> On Wed, Dec 18, 2002 at 02:42:25AM +0100, Juan Quintela wrote:
> >> PD. Someone can explain me what mean:
> >> __attribute__ ((__mode__ (__SI__)));
> >>
> >> The SI part don't appear in the gcc info pages :(
>
> ralf> Single Integer, a 32-bit integer.
>
> Changing the code to u32 & friends will be acepted?
Yes.
Ralf
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH]:
@ 2002-12-19 20:00 Juan Quintela
2002-12-19 20:54 ` [PATCH]: Maciej W. Rozycki
0 siblings, 1 reply; 7+ messages in thread
From: Juan Quintela @ 2002-12-19 20:00 UTC (permalink / raw)
To: Ralf Baechle, mipslist
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH]:
2002-12-19 20:00 [PATCH]: Juan Quintela
@ 2002-12-19 20:54 ` Maciej W. Rozycki
2002-12-19 21:09 ` [PATCH]: Juan Quintela
0 siblings, 1 reply; 7+ messages in thread
From: Maciej W. Rozycki @ 2002-12-19 20:54 UTC (permalink / raw)
To: Juan Quintela; +Cc: Ralf Baechle, mipslist
On 19 Dec 2002, Juan Quintela wrote:
> - pte_val() returs a long, print it directly.
[...]
> - printk("Memory Mapping: VA = %08x, PA = %08x ", addr, (unsigned int) pte_val(page));
> + printk("Memory Mapping: VA = %08x, PA = %08x ", addr, pte_val(page));
Well, I guess you need "%08lx" then. For both formats, actually.
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH]:
2002-12-19 20:54 ` [PATCH]: Maciej W. Rozycki
@ 2002-12-19 21:09 ` Juan Quintela
0 siblings, 0 replies; 7+ messages in thread
From: Juan Quintela @ 2002-12-19 21:09 UTC (permalink / raw)
To: Maciej W. Rozycki; +Cc: Ralf Baechle, mipslist
>>>>> "maciej" == Maciej W Rozycki <macro@ds2.pg.gda.pl> writes:
maciej> On 19 Dec 2002, Juan Quintela wrote:
>> - pte_val() returs a long, print it directly.
maciej> [...]
>> - printk("Memory Mapping: VA = %08x, PA = %08x ", addr, (unsigned int) pte_val(page));
>> + printk("Memory Mapping: VA = %08x, PA = %08x ", addr, pte_val(page));
maciej> Well, I guess you need "%08lx" then. For both formats, actually.
Arghhhhhhhh, wrong patch,
Ralf, don't apply, appy this other:
Sorry for the inconvenience, just diff the wrong tree :(
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 21:03:09 -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 = %08lx, PA = %08lx ", 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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2002-12-19 21:03 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-19 20:00 [PATCH]: Juan Quintela
2002-12-19 20:54 ` [PATCH]: Maciej W. Rozycki
2002-12-19 21:09 ` [PATCH]: Juan Quintela
-- strict thread matches above, loose matches on Subject: below --
2002-12-18 1:42 [PATCH]: Juan Quintela
2002-12-18 19:29 ` [PATCH]: Ralf Baechle
2002-12-18 21:41 ` [PATCH]: Juan Quintela
2002-12-18 22:35 ` [PATCH]: Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox