source: rtems/bsps/powerpc/qoriq/start/l2cache.S @ 8f8ccee

5
Last change on this file since 8f8ccee 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: 839 bytes
Line 
1/*
2 * Copyright (c) 2015, 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 <libcpu/powerpc-utility.h>
16
17        .global qoriq_l2cache_flush_invalidate
18
19        .section ".bsp_start_text", "ax"
20
21qoriq_l2cache_flush_invalidate:
22
23        /* Flush L2 cache */
24        lwz     r4, 0(r3)
25        oris    r4, r4, FSL_EIS_L2CSR0_L2FL >> 16
26        stw     r4, 0(r3)
271:
28        lwz     r4, 0(r3)
29        andis.  r4, r4, FSL_EIS_L2CSR0_L2FL >> 16
30        bne     1b
31        isync
32
33        /* Invalidate L2 cache */
34        lwz     r4, 0(r3)
35        oris    r4, r4, FSL_EIS_L2CSR0_L2FI >> 16
36        stw     r4, 0(r3)
371:
38        lwz     r4, 0(r3)
39        andis.  r4, r4, FSL_EIS_L2CSR0_L2FI >> 16
40        bne     1b
41        isync
42
43        blr
Note: See TracBrowser for help on using the repository browser.