On 11/9/08, Aurelien Jarno aurelien@aurel32.net wrote:
Hi,
openbios fails to build on sparc with recent kernel headers as <asm/page.h> has been removed. The following patch defines SEGMENT_SIZE instead of including <asm/page.h>.
Thanks. I think OpenBIOS should not ever use kernel headers...
#ifdef linux -#include <asm/page.h> #if defined(__i386__) || defined(__mc68000__) #define SEGMENT_SIZE 1024 +#elif defined(__sparc__) +#define SEGMENT_SIZE 4096 #else +#include <asm/page.h>
... but !linux should not use them either.