blob: f43ac38dd34bfbaa8cf36ce3c56d7fd81e19b012 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/**
* @file
*
* @brief NIOS2 MPU Disable Protected
*/
/*
* Copyright (c) 2011 embedded brains GmbH. All rights reserved.
*
* embedded brains GmbH
* Obere Lagerstr. 30
* 82178 Puchheim
* Germany
* <rtems@embedded-brains.de>
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <rtems/score/isr.h>
#include <rtems/score/nios2-utility.h>
uint32_t _Nios2_MPU_Disable_protected( void )
{
ISR_Level level;
uint32_t config;
_ISR_Disable( level );
config = _Nios2_MPU_Disable();
_ISR_Enable( level );
return config;
}
|