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

Aurelien Jarno aurelien at aurel32.net
Sun Nov 9 12:58:29 CET 2008


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

-- 
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32 at debian.org         | aurelien at aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net



More information about the OpenBIOS mailing list