File indexing completed on 2025-05-11 08:23:58
0001
0002
0003
0004
0005
0006
0007 #include <bsp.h>
0008 #include <bsp/bootcard.h>
0009
0010 #include <libcpu/powerpc-utility.h>
0011
0012 #include <rtems/sysinit.h>
0013
0014 LINKER_SYMBOL(__rtems_end)
0015
0016 static Memory_Area _Memory_Areas[1];
0017
0018 static const Memory_Information _Memory_Information =
0019 MEMORY_INFORMATION_INITIALIZER(_Memory_Areas);
0020
0021 static void bsp_memory_initialize(void)
0022 {
0023 uintptr_t size;
0024 uintptr_t begin;
0025
0026 begin = (uintptr_t)__rtems_end;
0027 size = (uintptr_t)BSP_mem_size - begin;
0028
0029 _Memory_Initialize_by_size(&_Memory_Areas[0], (void *) begin, size);
0030 }
0031
0032 RTEMS_SYSINIT_ITEM(
0033 bsp_memory_initialize,
0034 RTEMS_SYSINIT_MEMORY,
0035 RTEMS_SYSINIT_ORDER_MIDDLE
0036 );
0037
0038 const Memory_Information *_Memory_Get(void)
0039 {
0040 return &_Memory_Information;
0041 }