source: rtems/bsps/powerpc/qoriq/start/portal.c @ a2dad96

5
Last change on this file since a2dad96 was 9964895, checked in by Sebastian Huber <sebastian.huber@…>, on 04/20/18 at 08:35:35

bsps: Move startup files to bsps

Adjust build support files to new directory layout.

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 899 bytes
Line 
1/*
2 * Copyright (c) 2016 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Dornierstr. 4
6 *  82178 Puchheim
7 *  Germany
8 *  <rtems@embedded-brains.de>
9 *
10 * The license and distribution terms for this file may be
11 * found in the file LICENSE in this distribution or at
12 * http://www.rtems.org/license/LICENSE.
13 */
14
15#include <bsp/qoriq.h>
16
17#if QORIQ_CHIP_IS_T_VARIANT(QORIQ_CHIP_VARIANT)
18
19#include <libcpu/powerpc-utility.h>
20
21void qoriq_clear_ce_portal(void *base, size_t size)
22{
23  size_t offset;
24
25  for (offset = 0; offset < size; offset += 64) {
26    ppc_data_cache_block_clear_to_zero_2(base, offset);
27    ppc_data_cache_block_flush_2(base, offset);
28  }
29}
30
31void qoriq_clear_ci_portal(void *base, size_t size)
32{
33  uint32_t zero;
34  size_t offset;
35
36  zero = 0;
37
38  for (offset = 0; offset < size; offset += 4) {
39    ppc_write_word(zero, (char *) base + offset);
40  }
41}
42
43#endif
Note: See TracBrowser for help on using the repository browser.