Various fixes and optimizations

Known defects:
EMMC mailboxes won't work because memory access mode is cached
for bss data.