Index: BOOK/final-system/mips64-chapter.xml
===================================================================
--- BOOK/final-system/mips64-chapter.xml (revision fddcf7473d3a088c46a781198fd1ee0f1c2c22fd)
+++ BOOK/final-system/mips64-chapter.xml (revision 57e2e0668c47a628fe27ff117c882f0bf4973996)
@@ -30,5 +30,5 @@
-
+
Index: BOOK/final-system/mips64/ppl-64bit.xml
===================================================================
--- BOOK/final-system/mips64/ppl-64bit.xml (revision 57e2e0668c47a628fe27ff117c882f0bf4973996)
+++ BOOK/final-system/mips64/ppl-64bit.xml (revision 57e2e0668c47a628fe27ff117c882f0bf4973996)
@@ -0,0 +1,104 @@
+
+
+ %general-entities;
+]>
+
+
+
+
+ PPL-&ppl-version; 64 Bit
+
+
+ PPL
+
+
+
+
+
+ Installation of PPL
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Finally, create a stub header in the place of the originals:
+
+cat > /usr/include/ppl.h << "EOF"
+/* ppl.hh - Stub Header */
+#ifndef __STUB__PPL_HH__
+#define __STUB__PPL_HH__
+
+#include <sgidefs.h>
+
+#if (_MIPS_SIM == _ABIO32)
+# include "ppl-32.hh"
+#elif (_MIPS_SIM == _ABIN32)
+# include "ppl-n32.hh"
+#elif (_MIPS_SIM == _ABI64)
+# include "ppl-64.hh"
+#endif
+
+#endif /* __STUB__PPL_HH__ */
+EOF
+
+
+
+
+
+
Index: BOOK/final-system/multilib/ppl-64bit.xml
===================================================================
--- BOOK/final-system/multilib/ppl-64bit.xml (revision fddcf7473d3a088c46a781198fd1ee0f1c2c22fd)
+++ BOOK/final-system/multilib/ppl-64bit.xml (revision 57e2e0668c47a628fe27ff117c882f0bf4973996)
@@ -70,4 +70,28 @@
xpointer="xpointer(//*[@os='i'])"/>
+ Create the 64bit header file:
+
+mv -v /usr/include/ppl{,-64}.hh
+
+ Finally, create a stub header in the place of the originals:
+
+cat > /usr/include/ppl.hh << "EOF"
+/* ppl.hh - Stub Header */
+#ifndef __STUB__PPL_HH__
+#define __STUB__PPL_HH__
+
+#if defined(__x86_64__) || \
+ defined(__sparc64__) || \
+ defined(__arch64__) || \
+ defined(__powerpc64__) || \
+ defined (__s390x__)
+# include "ppl-64.h"
+#else
+# include "ppl-32.h"
+#endif
+
+#endif /* __STUB__PPL_HH__ */
+EOF
+
Index: BOOK/final-system/multilib/ppl-n32.xml
===================================================================
--- BOOK/final-system/multilib/ppl-n32.xml (revision fddcf7473d3a088c46a781198fd1ee0f1c2c22fd)
+++ BOOK/final-system/multilib/ppl-n32.xml (revision 57e2e0668c47a628fe27ff117c882f0bf4973996)
@@ -71,4 +71,8 @@
xpointer="xpointer(//*[@os='i'])"/>
+ Create the N32 header file:
+
+mv -v /usr/include/ppl{,-n32}.hh
+
Index: BOOK/final-system/multilib/ppl.xml
===================================================================
--- BOOK/final-system/multilib/ppl.xml (revision fddcf7473d3a088c46a781198fd1ee0f1c2c22fd)
+++ BOOK/final-system/multilib/ppl.xml (revision 57e2e0668c47a628fe27ff117c882f0bf4973996)
@@ -71,4 +71,9 @@
xpointer="xpointer(//*[@os='i'])"/>
+ One of the headers installed by PPL is architecture specific. Programs compiled as 32bit will require the header provided by the 32bit installation of PPL. The same applies for 64bit programs. Move the header so a wrapper can be put in its place later:
+
+mv -v /usr/include/ppl{,-32}.hh
+
+