source: rtems/cpukit/score/cpu/nios2/nios2-mpu-configuration.c @ d4a95940

4.115
Last change on this file since d4a95940 was d4a95940, checked in by Sebastian Huber <sebastian.huber@…>, on 10/21/11 at 08:44:23

2011-10-21 Sebastian Huber <sebastian.huber@…>

  • nios2-mpu-configuration.c, nios2-mpu-descriptor.c, nios2-mpu-disable-protected.c, nios2-mpu-reset.c: New files.
  • Makefile.am: Reflect changes above.
  • rtems/score/nios2-utility.h, nios2-context-initialize.c: Added support for the memory protection unit (MPU).
  • Property mode set to 100644
File size: 737 bytes
Line 
1/*
2 * Copyright (c) 2011 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Obere Lagerstr. 30
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.com/license/LICENSE.
13 *
14 * $Id$
15 */
16
17#ifdef HAVE_CONFIG_H
18  #include "config.h"
19#endif
20
21#include <rtems/score/nios2-utility.h>
22
23static const Nios2_MPU_Configuration *_Nios2_MPU_Configuration;
24
25void _Nios2_MPU_Set_configuration( const Nios2_MPU_Configuration *config )
26{
27  _Nios2_MPU_Configuration = config;
28}
29
30const Nios2_MPU_Configuration *_Nios2_MPU_Get_configuration( void )
31{
32  return _Nios2_MPU_Configuration;
33}
Note: See TracBrowser for help on using the repository browser.