pc: split out memory allocation from pc_init1() into pc_memory_init()