Changeset 1380c822 in rtems


Ignore:
Timestamp:
Dec 5, 2019, 6:51:12 AM (8 weeks ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
5ae6112
Parents:
4c30acf
git-author:
Sebastian Huber <sebastian.huber@…> (12/05/19 06:51:12)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/05/19 06:51:46)
Message:

bsp/xen: Use BSP options for all linkcmds vars

Update #3818.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bsps/arm/xen/start/linkcmds.in

    r4c30acf r1380c822  
    2828
    2929MEMORY {
    30    RAM_MMU   : ORIGIN = @GUEST_RAM_BASE@, LENGTH = @GUEST_RAM_MMU_LENGTH@
    31    RAM       : ORIGIN = @GUEST_RAM_BASE@ + @GUEST_LOAD_OFFSET@, LENGTH = @GUEST_RAM_LENGTH@ - @GUEST_LOAD_OFFSET@ - @GUEST_RAM_NOCACHE_LENGTH@
    32    NOCACHE   : ORIGIN = @GUEST_RAM_BASE@ + @GUEST_RAM_LENGTH@ - @GUEST_RAM_NOCACHE_LENGTH@, LENGTH = @GUEST_RAM_NOCACHE_LENGTH@
     30   RAM_MMU   : ORIGIN = @BSP_XEN_RAM_BASE@, LENGTH = @BSP_XEN_MMU_LENGTH@
     31   RAM       : ORIGIN = @BSP_XEN_RAM_BASE@ + @BSP_XEN_LOAD_OFFSET@, LENGTH = @BSP_XEN_RAM_LENGTH@ - @BSP_XEN_LOAD_OFFSET@ - @BSP_XEN_NOCACHE_LENGTH@
     32   NOCACHE   : ORIGIN = @BSP_XEN_RAM_BASE@ + @BSP_XEN_RAM_LENGTH@ - @BSP_XEN_NOCACHE_LENGTH@, LENGTH = @BSP_XEN_NOCACHE_LENGTH@
    3333}
    3434
  • c/src/lib/libbsp/arm/xen/configure.ac

    r4c30acf r1380c822  
    3131
    3232RTEMS_BSPOPTS_SET([BSP_XEN_RAM_LENGTH],[*],[8M])
    33 RTEMS_BSPOPTS_HELP([BSP_XEN_RAM_LENGTH],[override a BSP's default RAM length])
     33RTEMS_BSPOPTS_HELP([BSP_XEN_RAM_LENGTH],[length of memory area available to the BSP])
    3434
    3535RTEMS_BSPOPTS_SET([BSP_XEN_NOCACHE_LENGTH],[*],[1M])
    3636RTEMS_BSPOPTS_HELP([BSP_XEN_NOCACHE_LENGTH],[length of nocache RAM region])
    3737
    38 GUEST_RAM_BASE="0x40000000"
    39 GUEST_LOAD_OFFSET="0x8000"
    40 GUEST_RAM_MMU_LENGTH="16k"
     38RTEMS_BSPOPTS_SET([BSP_XEN_RAM_BASE],[*],[0x40000000])
     39RTEMS_BSPOPTS_HELP([BSP_XEN_RAM_BASE],[base address of memory area available to the BSP])
     40
     41RTEMS_BSPOPTS_SET([BSP_XEN_LOAD_OFFSET],[*],[0x8000])
     42RTEMS_BSPOPTS_HELP([BSP_XEN_LOAD_OFFSET],[offset of RAM region from memory area base])
     43
     44RTEMS_BSPOPTS_SET([BSP_XEN_MMU_LENGTH],[*],[16k])
     45RTEMS_BSPOPTS_HELP([BSP_XEN_MMU_LENGTH],[length of MMU region])
    4146
    4247AC_DEFUN([XEN_LINKCMD],[
     
    4550])
    4651
    47 XEN_LINKCMD([GUEST_RAM_BASE],[normal RAM region origin],[${GUEST_RAM_BASE}])
    48 XEN_LINKCMD([GUEST_RAM_LENGTH],[normal RAM region length],[${BSP_XEN_RAM_LENGTH}])
    49 XEN_LINKCMD([GUEST_LOAD_OFFSET],[entry point of guest],[${GUEST_LOAD_OFFSET}])
    50 XEN_LINKCMD([GUEST_RAM_MMU_LENGTH],[MMU region length],[${GUEST_RAM_MMU_LENGTH}])
    51 XEN_LINKCMD([GUEST_RAM_NOCACHE_LENGTH],[length of nocache RAM region],[${BSP_XEN_NOCACHE_LENGTH}])
     52XEN_LINKCMD([BSP_XEN_RAM_BASE],[normal RAM region origin],[${BSP_XEN_RAM_BASE}])
     53XEN_LINKCMD([BSP_XEN_RAM_LENGTH],[normal RAM region length],[${BSP_XEN_RAM_LENGTH}])
     54XEN_LINKCMD([BSP_XEN_LOAD_OFFSET],[entry point of guest],[${BSP_XEN_LOAD_OFFSET}])
     55XEN_LINKCMD([BSP_XEN_MMU_LENGTH],[MMU region length],[${BSP_XEN_MMU_LENGTH}])
     56XEN_LINKCMD([BSP_XEN_NOCACHE_LENGTH],[length of nocache RAM region],[${BSP_XEN_NOCACHE_LENGTH}])
    5257
    5358RTEMS_BSP_CLEANUP_OPTIONS
Note: See TracChangeset for help on using the changeset viewer.