Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Current cvs kernerl fails to compile for decstation
@ 2000-02-18  9:25 Florian Lohoff
  2000-02-18 17:05 ` Marc Esipovich
  2000-02-18 21:36 ` Ralf Baechle
  0 siblings, 2 replies; 5+ messages in thread
From: Florian Lohoff @ 2000-02-18  9:25 UTC (permalink / raw)
  To: linux, linux-mips, linux-mips


On Decstation:


make[3]: Entering directory `/data/kernel/linux/drivers/net'
gcc -D__KERNEL__ -I/data/kernel/linux/include -Wall -Wstrict-prototypes -O2 -fom
it-frame-pointer -G 0 -mno-abicalls -fno-pic -mcpu=r4600 -mips2 -pipe    -DEXPOR
T_SYMTAB -c slhc.c
In file included from slhc.c:74:
/data/kernel/linux/include/net/tcp.h:343: #error HZ != 100 && HZ != 1024.
make[3]: *** [slhc.o] Error 1
make[3]: Leaving directory `/data/kernel/linux/drivers/net'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/data/kernel/linux/drivers/net'
make[1]: *** [_subdir_net] Error 2
make[1]: Leaving directory `/data/kernel/linux/drivers'
make: *** [_dir_drivers] Error 2


------------

#if HZ == 100
#define TCP_TW_RECYCLE_TICK (7+2-TCP_TW_RECYCLE_SLOTS_LOG)
#elif HZ == 1024
#define TCP_TW_RECYCLE_TICK (10+2-TCP_TW_RECYCLE_SLOTS_LOG)
#else
#error HZ != 100 && HZ != 1024.
#endif

-------------

Hrmpf ...

Flo
-- 
Florian Lohoff		flo@rfc822.org		      	+49-5241-470566
"Technology is a constant battle between manufacturers producing bigger and
more idiot-proof systems and nature producing bigger and better idiots."

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

* Re: Current cvs kernerl fails to compile for decstation
  2000-02-18  9:25 Current cvs kernerl fails to compile for decstation Florian Lohoff
@ 2000-02-18 17:05 ` Marc Esipovich
  2000-02-18 21:46   ` Ralf Baechle
  2000-02-18 21:36 ` Ralf Baechle
  1 sibling, 1 reply; 5+ messages in thread
From: Marc Esipovich @ 2000-02-18 17:05 UTC (permalink / raw)
  To: Florian Lohoff; +Cc: linux, linux-mips, linux-mips

> #if HZ == 100
> #define TCP_TW_RECYCLE_TICK (7+2-TCP_TW_RECYCLE_SLOTS_LOG)
> #elif HZ == 1024
> #define TCP_TW_RECYCLE_TICK (10+2-TCP_TW_RECYCLE_SLOTS_LOG)
> #else
> #error HZ != 100 && HZ != 1024.
> #endif
> 

Without looking or knowing the source,  my recommendation is, see where HZ
is defined, and find out why it's not defined as either 100 or 1024, but
you know that already ;)


	Marc.

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

* Re: Current cvs kernerl fails to compile for decstation
  2000-02-18  9:25 Current cvs kernerl fails to compile for decstation Florian Lohoff
  2000-02-18 17:05 ` Marc Esipovich
@ 2000-02-18 21:36 ` Ralf Baechle
  1 sibling, 0 replies; 5+ messages in thread
From: Ralf Baechle @ 2000-02-18 21:36 UTC (permalink / raw)
  To: Florian Lohoff; +Cc: linux, linux-mips, linux-mips

On Fri, Feb 18, 2000 at 10:25:05AM +0100, Florian Lohoff wrote:

> #if HZ == 100
> #define TCP_TW_RECYCLE_TICK (7+2-TCP_TW_RECYCLE_SLOTS_LOG)
> #elif HZ == 1024
> #define TCP_TW_RECYCLE_TICK (10+2-TCP_TW_RECYCLE_SLOTS_LOG)
> #else
> #error HZ != 100 && HZ != 1024.
> #endif

How about making that:

#if HZ == 100
#define TCP_TW_RECYCLE_TICK (7+2-TCP_TW_RECYCLE_SLOTS_LOG)
#elif HZ == 64
#define TCP_TW_RECYCLE_TICK (6+2-TCP_TW_RECYCLE_SLOTS_LOG)
#elif HZ == 1024
#define TCP_TW_RECYCLE_TICK (10+2-TCP_TW_RECYCLE_SLOTS_LOG)
#else
#error HZ != 100 && HZ != 1024.
#endif

Without further reading the context that would by my first attempt.

> Hrmpf ...

Imagine, and tomorrow I'm going to break all networking drivers :-)

  Ralf

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

* Re: Current cvs kernerl fails to compile for decstation
  2000-02-18 17:05 ` Marc Esipovich
@ 2000-02-18 21:46   ` Ralf Baechle
  2000-02-19 12:26     ` Harald Koerfgen
  0 siblings, 1 reply; 5+ messages in thread
From: Ralf Baechle @ 2000-02-18 21:46 UTC (permalink / raw)
  To: Marc Esipovich; +Cc: Florian Lohoff, linux, linux-mips, linux-mips

On Fri, Feb 18, 2000 at 03:05:18PM -0200, Marc Esipovich wrote:

> > #if HZ == 100
> > #define TCP_TW_RECYCLE_TICK (7+2-TCP_TW_RECYCLE_SLOTS_LOG)
> > #elif HZ == 1024
> > #define TCP_TW_RECYCLE_TICK (10+2-TCP_TW_RECYCLE_SLOTS_LOG)
> > #else
> > #error HZ != 100 && HZ != 1024.
> > #endif
> 
> Without looking or knowing the source,  my recommendation is, see where HZ
> is defined, and find out why it's not defined as either 100 or 1024, but
> you know that already ;)

It's 64 because it's not possible to program the DECstation RTC to 100Hz
or 1024Hz.

  Ralf

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

* Re: Current cvs kernerl fails to compile for decstation
  2000-02-18 21:46   ` Ralf Baechle
@ 2000-02-19 12:26     ` Harald Koerfgen
  0 siblings, 0 replies; 5+ messages in thread
From: Harald Koerfgen @ 2000-02-19 12:26 UTC (permalink / raw)
  To: Ralf Baechle
  Cc: linux-mips, linux-mips, linux, Florian Lohoff, Marc Esipovich


On 18-Feb-00 Ralf Baechle wrote:
> On Fri, Feb 18, 2000 at 03:05:18PM -0200, Marc Esipovich wrote:
> 
>> > #if HZ == 100
>> > #define TCP_TW_RECYCLE_TICK (7+2-TCP_TW_RECYCLE_SLOTS_LOG)
>> > #elif HZ == 1024
>> > #define TCP_TW_RECYCLE_TICK (10+2-TCP_TW_RECYCLE_SLOTS_LOG)
>> > #else
>> > #error HZ != 100 && HZ != 1024.
>> > #endif

Well, I changed that to 
#if HZ == 100 || HZ == 128

HZ has been changed to 128 somewhere in the early 2.3.x series...

> It's 64 because it's not possible to program the DECstation RTC to 100Hz
> or 1024Hz.

Well, 1024 Hz would be possible but certainly total overkill for a DECstation
2100 with a 12.5 Mhz R2000 :-)

---
Regards,
Harald

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

end of thread, other threads:[~2000-02-19 12:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-02-18  9:25 Current cvs kernerl fails to compile for decstation Florian Lohoff
2000-02-18 17:05 ` Marc Esipovich
2000-02-18 21:46   ` Ralf Baechle
2000-02-19 12:26     ` Harald Koerfgen
2000-02-18 21:36 ` Ralf Baechle

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