Hi All,
I tried to compile the
alpha4 today.
I got the following error message during the building process:
- Code: Select all
arch/powerpc/kernel/pci-common.c: In function ‘pci_process_bridge_OF_ranges’:
arch/powerpc/kernel/pci-common.c:732:59: error: ‘_PAGE_GUARDED’ undeclared (first use in this function)
range.size, _PAGE_NO_CACHE|_PAGE_GUARDED);
^
arch/powerpc/kernel/pci-common.c:732:59: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [arch/powerpc/kernel/pci-common.o] Fehler 1
make: *** [arch/powerpc/kernel] Fehler 2
_PAGE_GUARDED is used in our Nemo patch:
- Code: Select all
+
+
+#ifdef CONFIG_PPC_PASEMI_SB600
+ /* Workaround for lack of device tree. New for kernel 3.17: range.cpu_addr instead of cpu_addr and range.size instead of size Ch. Zigotzky */
+ if (primary) {
+ __ioremap_at(range.cpu_addr, (void *)ISA_IO_BASE,
+ range.size, _PAGE_NO_CACHE|_PAGE_GUARDED);
+ hose->io_base_virt = (void *)_IO_BASE;
+ /* _IO_BASE needs unsigned long long for the kernel 3.17 Ch. Zigotzky */
+ printk("Initialised io_base_virt 0x%lx _IO_BASE 0x%llx\n", (unsigned long)hose->io_base_virt, (unsigned long long)_IO_BASE);
+ }
+#endif
+
It was deleted with the PowerPC updates
powerpc-4.7-1 on 2016-05-20 17:12:41 (GMT).
- Code: Select all
diff --git a/arch/powerpc/include/asm/book3s/64/hash.h b/arch/powerpc/include/asm/book3s/64/hash.h
index d0ee6fc..f61cad3 100644
--- a/arch/powerpc/include/asm/book3s/64/hash.h
+++ b/arch/powerpc/include/asm/book3s/64/hash.h
@@ -13,48 +13,12 @@
* We could create separate kernel read-only if we used the 3 PP bits
* combinations that newer processors provide but we currently don't.
*/
-#define _PAGE_BIT_SWAP_TYPE 0
-
-#define _PAGE_EXEC 0x00001 /* execute permission */
-#define _PAGE_RW 0x00002 /* read & write access allowed */
-#define _PAGE_READ 0x00004 /* read access allowed */
-#define _PAGE_USER 0x00008 /* page may be accessed by userspace */
-#define _PAGE_GUARDED 0x00010 /* G: guarded (side-effect) page */
I modify the line
- Code: Select all
range.size, _PAGE_NO_CACHE|_PAGE_GUARDED);
to
- Code: Select all
range.size, pgprot_val(pgprot_noncached(__pgprot(0))));
After that it compiled without any problems but unfortunately it doesn't boot.
Cheers,
Christian