ARM: move memory layout sanity checking before meminfo initialization