Changeset e1ee0b59 in rtems


Ignore:
Timestamp:
Sep 16, 2008, 10:13:54 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
53cb823
Parents:
20d7660b
Message:

2008-09-16 Joel Sherrill <joel.sherrill@…>

  • startup/bspgetworkarea.c, startup/linkcmds.base: Do some prep work in anticipation of gen5200 and gen83xx being able to shared bsp_get_work_area() implementation.
Location:
c/src/lib/libbsp/powerpc
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/gen5200/ChangeLog

    r20d7660b re1ee0b59  
     12008-09-16      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * startup/bspgetworkarea.c, startup/linkcmds.base: Do some prep work in
     4        anticipation of gen5200 and gen83xx being able to shared
     5        bsp_get_work_area() implementation.
     6
    172008-09-16      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • c/src/lib/libbsp/powerpc/gen5200/startup/bspgetworkarea.c

    r20d7660b re1ee0b59  
    1010#include <bsp/bootcard.h>
    1111#include <stdint.h>
     12
     13/*
     14 *  These are provided by the linkcmds for ALL of the BSPs which use this file.
     15 */
     16extern char RamBase[];
     17extern char WorkAreaBase[];
     18extern char HeapSize[];
     19extern char RamSize[];
    1220
    1321#if defined(HAS_UBOOT)
     
    3240                                 uboot_bdinfo_ptr->bi_memsize;
    3341  #else /* HAS_UBOOT */
    34     char *ram_end = bsp_ram_end;
     42    char *ram_end = (uintptr_t)RamBase + (uintptr_t)RamSize;
    3543  #endif /* HAS_UBOOT */
    3644
     
    3846  *work_area_size = ram_end - bsp_work_area_start;
    3947  *heap_start = BSP_BOOTCARD_HEAP_USES_WORK_AREA;
    40   *heap_size = BSP_BOOTCARD_HEAP_SIZE_DEFAULT;
     48  *heap_size = HeapSize;
    4149}
    4250
  • c/src/lib/libbsp/powerpc/gen5200/startup/linkcmds.base

    r20d7660b re1ee0b59  
    2222
    2323bsp_section_align = 32;
     24
     25RamBase = bsp_ram_start;
     26RamSize = bsp_ram_size;
     27HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;
    2428
    2529SECTIONS {
     
    269273         */
    270274        bsp_work_area_start = .;
     275        WorkAreaBase = .;
    271276       
    272277        /* Stabs debugging sections.  */
  • c/src/lib/libbsp/powerpc/gen83xx/ChangeLog

    r20d7660b re1ee0b59  
     12008-09-16      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * startup/bspgetworkarea.c, startup/linkcmds.base: Do some prep work in
     4        anticipation of gen5200 and gen83xx being able to shared
     5        bsp_get_work_area() implementation.
     6
    172008-09-16      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • c/src/lib/libbsp/powerpc/gen83xx/startup/bspgetworkarea.c

    r20d7660b re1ee0b59  
    2424#include <bsp/bootcard.h>
    2525
     26/*
     27 *  These are provided by the linkcmds for ALL of the BSPs which use this file.
     28 */
     29extern char RamBase[];
     30extern char WorkAreaBase[];
     31extern char HeapSize[];
     32extern char RamSize[];
     33
    2634#ifdef HAS_UBOOT
    2735  extern bd_t mpc83xx_uboot_board_info;
     
    3846                                   mpc83xx_uboot_board_info.bi_memsize;
    3947  #else /* HAS_UBOOT */
    40     char *ram_end = bsp_ram_end;
     48    char *ram_end = RamBase + (uintptr_t)RamSize;
    4149  #endif /* HAS_UBOOT */
    4250
     
    4452  *work_area_size = ram_end - bsp_work_area_start;
    4553  *heap_start = BSP_BOOTCARD_HEAP_USES_WORK_AREA;
    46   *heap_size = BSP_BOOTCARD_HEAP_SIZE_DEFAULT;
     54  *heap_size = HeapSize;
    4755}
  • c/src/lib/libbsp/powerpc/gen83xx/startup/linkcmds.base

    r20d7660b re1ee0b59  
    1818
    1919bsp_section_align = 32;
     20
     21RamBase = bsp_ram_start;
     22RamSize = bsp_ram_size;
     23HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;
    2024
    2125SECTIONS {
     
    275279         */
    276280        bsp_work_area_start = .;
     281        WorkAreaBase = .;
    277282       
    278283        /* Stabs debugging sections.  */
Note: See TracChangeset for help on using the changeset viewer.