mirror of
https://gitlab.com/qemu-project/seabios-hppa.git
synced 2025-10-30 07:48:43 +08:00
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>
This commit is contained in:
@ -3212,6 +3212,10 @@ void __VISIBLE start_parisc_firmware(void)
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user