Changeset a880c90 in rtems


Ignore:
Timestamp:
May 18, 2012, 1:41:56 PM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
1901afc5
Parents:
e7cf654
git-author:
Sebastian Huber <sebastian.huber@…> (05/18/12 13:41:56)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/21/12 08:59:59)
Message:

powerpc/mpc55xxevb: Fix cache define usage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-cache.S

    re7cf654 ra880c90  
    88
    99/*
    10  * Copyright (c) 2008-2011 embedded brains GmbH.  All rights reserved.
     10 * Copyright (c) 2008-2012 embedded brains GmbH.  All rights reserved.
    1111 *
    1212 *  embedded brains GmbH
     
    3636        li      r4, 0x4
    3737
    38 #ifdef MPC55XX_HAS_INSTRUCTION_CACHE
     38#if defined(BSP_INSTRUCTION_CACHE_ENABLED) \
     39  && defined(MPC55XX_HAS_INSTRUCTION_CACHE)
    3940
    4041start_instruction_cache_invalidation:
     
    6566        mtspr   FSL_EIS_L1CSR1, r6
    6667
    67 #endif /* MPC55XX_HAS_INSTRUCTION_CACHE */
     68#endif
    6869
    69 #if defined(MPC55XX_HAS_DATA_CACHE) || defined(MPC55XX_HAS_UNIFIED_CACHE)
     70#if (defined(BSP_DATA_CACHE_ENABLED) && defined(MPC55XX_HAS_DATA_CACHE)) \
     71  || ((defined(BSP_DATA_CACHE_ENABLED) \
     72    || defined(BSP_INSTRUCTION_CACHE_ENABLED)) \
     73      && defined(MPC55XX_HAS_UNIFIED_CACHE))
    7074
    7175start_data_cache_invalidation:
     
    101105        mtspr   FSL_EIS_L1CSR0, r6
    102106
    103 #endif /* defined(MPC55XX_HAS_DATA_CACHE) || defined(MPC55XX_HAS_UNIFIED_CACHE) */
     107#endif
    104108
    105109        /* Return */
Note: See TracChangeset for help on using the changeset viewer.