Changeset 16d905f in rtems


Ignore:
Timestamp:
Jun 22, 2018, 5:51:08 AM (10 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
38024362
Parents:
37a1fc2
git-author:
Sebastian Huber <sebastian.huber@…> (06/22/18 05:51:08)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/27/18 06:58:17)
Message:

bsp/riscv: Add BSP options to define RAM region

Update #3433.

Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • bsps/riscv/riscv/start/linkcmds.in

    r37a1fc2 r16d905f  
    2727MEMORY
    2828{
    29   RAM    : ORIGIN = 0x0000000010000000, LENGTH = 0x10000000
     29  RAM    : ORIGIN = @RISCV_RAM_REGION_BEGIN@, LENGTH = @RISCV_RAM_REGION_SIZE@
    3030}
    3131
  • c/src/lib/libbsp/riscv/riscv/configure.ac

    r37a1fc2 r16d905f  
    1111RTEMS_SOURCE_TOP
    1212RTEMS_BUILD_TOP
    13 RTEMS_BSP_LINKCMDS
    1413
    1514RTEMS_CANONICAL_TARGET_CPU
     
    1918RTEMS_BSP_CLEANUP_OPTIONS
    2019
    21 AC_CONFIG_FILES([Makefile])
     20case "${RTEMS_BSP}" in
     21  rv64*medany)
     22    RISCV_RAM_REGION_BEGIN_DEFAULT=0x80000000
     23    ;;
     24  rv64*)
     25    RISCV_RAM_REGION_BEGIN_DEFAULT=0x70000000
     26    ;;
     27  *)
     28    RISCV_RAM_REGION_BEGIN_DEFAULT=0x80000000
     29    ;;
     30esac
     31
     32AC_DEFUN([RISCV_LINKCMD],[
     33AC_ARG_VAR([$1],[$2])dnl
     34[$1]=[$]{[$1]:-[$3]}
     35])
     36
     37RISCV_LINKCMD([RISCV_RAM_REGION_BEGIN],[begin of the RAM region for linker command file (default is 0x70000000 for 64-bit with -mcmodel=medlow and 0x80000000 for all other)],[${RISCV_RAM_REGION_BEGIN_DEFAULT}])
     38RISCV_LINKCMD([RISCV_RAM_REGION_SIZE],[size of the RAM region for linker command file (default 64MiB)],[0x04000000])
     39
     40AC_CONFIG_FILES([
     41Makefile
     42linkcmds:../../../../../../bsps/riscv/riscv/start/linkcmds.in
     43])
    2244AC_OUTPUT
Note: See TracChangeset for help on using the changeset viewer.