Linux MIPS Architecture development
 help / color / mirror / Atom feed
* i8259.c in big endian
@ 2001-11-08  6:47 Atsushi Nemoto
  2001-11-08 17:45 ` James Simmons
  2001-11-09 17:41 ` Ralf Baechle
  0 siblings, 2 replies; 17+ messages in thread
From: Atsushi Nemoto @ 2001-11-08  6:47 UTC (permalink / raw)
  To: linux-mips; +Cc: ralf

arch/mips/kernel/i8259.c seems not working in big endian.

Here is a patch to fix this.

--- linux-sgi-cvs/arch/mips/kernel/i8259.c	Mon Sep 10 02:43:01 2001
+++ linux.new/arch/mips/kernel/i8259.c	Thu Nov  8 15:40:03 2001
@@ -70,8 +70,13 @@
 static unsigned int cached_irq_mask = 0xffff;
 
 #define __byte(x,y) 	(((unsigned char *)&(y))[x])
+#ifdef __BIG_ENDIAN
+#define cached_21	(__byte(1,cached_irq_mask))
+#define cached_A1	(__byte(0,cached_irq_mask))
+#else
 #define cached_21	(__byte(0,cached_irq_mask))
 #define cached_A1	(__byte(1,cached_irq_mask))
+#endif
 
 void disable_8259A_irq(unsigned int irq)
 {
---
Atsushi Nemoto

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2001-11-13  5:18 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-08  6:47 i8259.c in big endian Atsushi Nemoto
2001-11-08 17:45 ` James Simmons
2001-11-08 20:13   ` Ralf Baechle
2001-11-08 20:20     ` James Simmons
2001-11-08 20:41       ` Ralf Baechle
2001-11-08 21:37         ` James Simmons
2001-11-08 21:53           ` [Linux-mips-kernel]Re: " James Simmons
2001-11-09 18:30             ` Jun Sun
2001-11-09 18:44               ` James Simmons
2001-11-09 19:44               ` Jim Paris
2001-11-09 20:50                 ` Jun Sun
2001-11-12 12:15               ` Ralf Baechle
2001-11-12 18:31                 ` Jun Sun
2001-11-12 19:56                   ` Florian Laws
2001-11-12 23:56                   ` Ralf Baechle
2001-11-12 21:49                 ` James Simmons
2001-11-09 17:41 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox