Changeset 0a9533fc in rtems


Ignore:
Timestamp:
Sep 28, 2013, 8:08:24 AM (6 years ago)
Author:
Hesham AL-Matary <heshamelmatary@…>
Branches:
4.11, master
Children:
5ceefe1
Parents:
abceda99
git-author:
Hesham AL-Matary <heshamelmatary@…> (09/28/13 08:08:24)
git-committer:
Gedare Bloom <gedare@…> (10/03/13 12:51:29)
Message:

Add a new necessary definition needed for raspberrypi MMU support

The new ARM_CP15_CTRL_XP is necessary to share ARMv6 and ARMv7
page-table formats and definitions.
It enables the extended page tables (introduced in ARMv6)
to be configured for the hardware page translation mechanism. This way
we can share ARMv6 and ARMv7 page tables entry formats.

Other Fault Status Register Definitions can be useful for debugging or
excpetion handlers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/arm/shared/include/arm-cp15.h

    rabceda99 r0a9533fc  
    88
    99/*
     10 * Copyright (c) 2013 Hesham AL-Matary
    1011 * Copyright (c) 2009-2013 embedded brains GmbH.  All rights reserved.
    1112 *
     
    140141#define ARM_CP15_CTRL_EE (1U << 25)
    141142#define ARM_CP15_CTRL_VE (1U << 24)
     143#define ARM_CP15_CTRL_XP (1U << 23)
    142144#define ARM_CP15_CTRL_U (1U << 22)
    143145#define ARM_CP15_CTRL_FI (1U << 21)
     
    174176/** @} */
    175177
     178/**
     179 * @name Fault Status Register Defines
     180 *
     181 * @{
     182 */
     183
     184#define ARM_CP15_FAULT_STATUS_MASK 0x040F
     185
     186#define ARM_CP15_FSR_ALIGNMENT_FAULT   0x00000001
     187#define ARM_CP15_FSR_BACKGROUND_FAULT  0x0000
     188#define ARM_CP15_FSR_ACCESS_PERMISSION_FAULT 0x000D
     189#define ARM_CP15_FSR_PRECISE_EXTERNAL_ABORT_FAULT 0x0008
     190#define ARM_CP15_FSR_IMPRECISE_EXTERNAL_ABORT_FAULT 0x0406
     191#define ARM_CP15_FSR_PRECISE_PARITY_ERROR_EXCEPTION 0x0006
     192#define ARM_CP15_FSR_IMPRECISE_PARITY_ERROR_EXCEPTION 0x0408
     193#define ARM_CP15_FSR_DEBUG_EVENT 0x0002
     194
     195/** @} */
     196
    176197static inline uint32_t arm_cp15_get_id_code(void)
    177198{
Note: See TracChangeset for help on using the changeset viewer.