Fix up some DRAM stuff (work in progress)