[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Fwd: Re: linux-2.4.20 CVS kernel-image for atari



 
--- Begin Message ---
"Christian T. Steigies" schrieb:
> 
> Atari does not build either. Even after some fixes:
> 
> --- linux-2.4/drivers/char/nvram.c.orig 2002-11-30 07:33:03.000000000 -0500
> +++ linux-2.4/drivers/char/nvram.c      2003-03-07 02:19:03.000000000 -0500
> @@ -98,6 +98,8 @@
>  #define RTC_PORT(x)            (TT_RTC_BAS + 2*(x))
>  #define CHECK_DRIVER_INIT()    (MACH_IS_ATARI && ATARIHW_PRESENT(TT_CLK))
> 
> +#define NVRAM_BYTES            (128-NVRAM_FIRST_BYTE)

This line will compile, but most likely it won't work. Although the initial
offset of 14 Bytes (NVRAM_FIRST-BYTE as defined in <linux/nvram.h>) is
correct, the atari has only 50 Bytes of NVRAM available. That's what the stuff
in the next couple of lines is about. Bytes 0 to 47 are data, bytes 48 and 49
contain the checksum over the others. So, for this to work properly either use

   #define NVRAM_BYTES            (64-NVRAM_FIRST_BYTE)
or save cpp some work and use
   #define NVRAM_BYTES            50

> +
>  /* On Ataris, the checksum is over all bytes except the checksum bytes
>   * themselves; these are at the very end */
>  #define ATARI_CKS_RANGE_START  0

Unfortunately I can't help with the PCI stuff, since I don't have a hades, and
I don't know enough about how that machine works. 

Björn Buske

--- End Message ---

Reply to: