source: rtems/c/src/lib/libbsp/powerpc/tqm8xx/startup/bspgetworkarea.c @ 1048a165

5
Last change on this file since 1048a165 was 1048a165, checked in by Sebastian Huber <sebastian.huber@…>, on Mar 26, 2018 at 8:36:52 AM

bsp/tqm8xx: Use shared linker command file

Update #3339.

  • Property mode set to 100644
File size: 809 bytes
Line 
1/**
2 * @file
3 *
4 * @ingroup tqm8xx
5 *
6 * @brief Source for BSP Get Work Area Memory
7 */
8
9/*
10 * Copyright (c) 2008, 2018 embedded brains GmbH.  All rights reserved.
11 *
12 *  embedded brains GmbH
13 *  Dornierstr. 4
14 *  82178 Puchheim
15 *  Germany
16 *  <rtems@embedded-brains.de>
17 *
18 * The license and distribution terms for this file may be
19 * found in the file LICENSE in this distribution or at
20 * http://www.rtems.org/license/LICENSE.
21 */
22
23#include <bsp.h>
24#include <bsp/bootcard.h>
25#include <bsp/linker-symbols.h>
26
27void bsp_work_area_initialize(void)
28{
29  char *ram_end = (char *) (TQM_BD_INFO.sdram_size - (uint32_t)TopRamReserved);
30  void *area_start = bsp_section_work_begin;
31  uintptr_t area_size = (uintptr_t) ram_end - (uintptr_t) area_start;
32
33  bsp_work_area_initialize_default( area_start, area_size );
34}
Note: See TracBrowser for help on using the repository browser.