Skip to contentSkip to conversation

brl emulation bug fix

Linux-ia64 Arun Sharma 3 participants 3 messages Apr 16, 2003 – Apr 17, 2003

lore
Share & tools
lore
#0 lore raw

This applies to both 2.4 and 2.5. A 64 bit value was being assigned to an int.

-Arun

ia64/kernel/brl_emu.c Thu Oct 17 15:40:29 2002 renamed from ia64/kernel/brl_emu.c.orig Thu Oct 17 10:02:52 2002 +1 -1
@@ -59,7 +59,7 @@
        unsigned long next_ip;
        struct siginfo siginfo;
        struct illegal_op_return rv;
-       int tmp_taken, unimplemented_address;
+       long tmp_taken, unimplemented_address;
 
        rv.fkt = (unsigned long) -1;
 
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line · Arun Sharma

Arun> This applies to both 2.4 and 2.5. A 64 bit value was being assigned to Arun> an int.

It didn't actually apply in 2.5 due to some whitespace differences (blank vs. tab), but I applied it by hand now.

Thanks!

	--david
#2 lore raw
In reply to Arun Sharma
Quoted 2 lines · Arun Sharma

This applies to both 2.4 and 2.5. A 64 bit value was being assigned to an int.

I applied this for 2.4 as well.

Quoted 11 lines
ia64/kernel/brl_emu.c Thu Oct 17 15:40:29 2002 renamed from ia64/kernel/brl_emu.c.orig Thu Oct 17 10:02:52 2002 +1 -1
@@ -59,7 +59,7 @@
        unsigned long next_ip;
        struct siginfo siginfo;
        struct illegal_op_return rv;
-       int tmp_taken, unimplemented_address;
+       long tmp_taken, unimplemented_address;
 
        rv.fkt = (unsigned long) -1;