Move kernel object functions from its headers to compilation units, thereby reducing the kernel's text section, cache, and TLB footprint. Fix #1492
This patch adds support for the Large Physical Address Space Extension for ARM v7.