pyramid: update memory layout (kanged from senny kernel)