parisc: HP-UX 11 64-bit saves number of RAM pages in PAGE0 at 0x33c

Not sure yet, why HP-UX 11 (64-bit) stores the value here, but it's
needed to allow HP-UX 11 to boot up.

Signed-off-by: Helge Deller <deller@gmx.de>
Noticed-by: Sven Schnelle <svens@stackframe.org>
diff --git a/src/parisc/parisc.c b/src/parisc/parisc.c
index 8c6d0cd..862fd6f 100644
--- a/src/parisc/parisc.c
+++ b/src/parisc/parisc.c
@@ -3212,6 +3212,10 @@
     memcpy((void*)MEM_PDC_ENTRY, &pdc_entry_table, i);
     flush_data_cache((char*)MEM_PDC_ENTRY, i);
 
+    if (is_64bit_PDC()) {
+        /* HP-UX 11 checks RAM in rminit() from this address */
+        *(unsigned int *) 0x33c = ram_size >> 12; /* # of pages */
+    }
     PAGE0->memc_cont = ram_size;
     PAGE0->memc_phsize = ram_size;
     PAGE0->memc_adsize = ram_size;