[OpenBIOS] [PATCH] Avoid including <asm/page.h>

Blue Swirl blauwirbel at gmail.com
Sun Nov 9 19:09:28 CET 2008


On 11/9/08, Aurelien Jarno <aurelien at 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.



More information about the OpenBIOS mailing list