j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
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>.
Aurelien
Index: include/a.out.h =================================================================== --- include/a.out.h (révision 245) +++ include/a.out.h (copie de travail) @@ -128,10 +128,12 @@ #endif
#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> #ifndef SEGMENT_SIZE #define SEGMENT_SIZE PAGE_SIZE #endif
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.