v5te.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #ifndef _ARCH_ARM_V5TE_H_
  2. #define _ARCH_ARM_V5TE_H_
  3. /*
  4. * Copyright (C) 2009 by egnite GmbH
  5. *
  6. * All rights reserved.
  7. *
  8. * Redistribution and use in source and binary forms, with or without
  9. * modification, are permitted provided that the following conditions
  10. * are met:
  11. *
  12. * 1. Redistributions of source code must retain the above copyright
  13. * notice, this list of conditions and the following disclaimer.
  14. * 2. Redistributions in binary form must reproduce the above copyright
  15. * notice, this list of conditions and the following disclaimer in the
  16. * documentation and/or other materials provided with the distribution.
  17. * 3. Neither the name of the copyright holders nor the names of
  18. * contributors may be used to endorse or promote products derived
  19. * from this software without specific prior written permission.
  20. *
  21. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  22. * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  23. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  24. * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  25. * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  26. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  27. * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  28. * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  29. * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  30. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
  31. * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  32. * SUCH DAMAGE.
  33. *
  34. * For additional information see http://www.ethernut.de/
  35. */
  36. /*!
  37. * \file arch/arm/v5te.h
  38. * \brief ARM9 specific features.
  39. *
  40. * \verbatim
  41. * $Id: v5te.h 2475 2009-02-17 09:35:05Z haraldkipp $
  42. * \endverbatim
  43. */
  44. /*! \brief Enables MMU. */
  45. #define CP15_CR1_M_BIT 0
  46. /*! \brief Enables alignment fault. */
  47. #define CP15_CR1_A_BIT 1
  48. /*! \brief Enables data cache. */
  49. #define CP15_CR1_C_BIT 2
  50. /*! \brief Enables big endian operation. */
  51. #define CP15_CR1_B_BIT 7
  52. /*! \brief Enables system protection. */
  53. #define CP15_CR1_S_BIT 8
  54. /*! \brief Enables ROM protection. */
  55. #define CP15_CR1_R_BIT 9
  56. /*! \brief Enables instruction cache. */
  57. #define CP15_CR1_I_BIT 12
  58. /*! \brief Enables high exception vectors. */
  59. #define CP15_CR1_V_BIT 13
  60. /*! \brief Enables round robin replacement strategy. */
  61. #define CP15_CR1_RR_BIT 14
  62. /*! \brief Enables MMU. */
  63. #define CP15_CR1_L4_BIT 15
  64. #endif