seL4 doesn't detect memory at runtime. The physical memory is specified in the DTS file, in this case,
kernel/tools/dts/spike.dts
seL4 build system extracts the memory info from this file, generates platform headers,
kernel/gen_headers/plat/machine/devices_gen.h
If you'd like to use smaller memory, simply modify the memory section in the DTS file.
________________________________________
From: Devel