5
Last change
on this file since 00acca28 was
24713163,
checked in by Sebastian Huber <sebastian.huber@…>, on 05/18/16 at 06:06:54
|
score: Rename _ISR_Disable() and _ISR_Enable()
Rename _ISR_Disable() into _ISR_Local_disable(). Rename _ISR_Enable()
into _ISR_Local_enable(). Remove _Debug_Is_owner_of_giant().
This is a preparation to remove the Giant lock.
Update #2555.
|
-
Property mode set to
100644
|
File size:
726 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief NIOS2 MPU Disable Protected |
---|
5 | */ |
---|
6 | |
---|
7 | /* |
---|
8 | * Copyright (c) 2011 embedded brains GmbH. All rights reserved. |
---|
9 | * |
---|
10 | * embedded brains GmbH |
---|
11 | * Obere Lagerstr. 30 |
---|
12 | * 82178 Puchheim |
---|
13 | * Germany |
---|
14 | * <rtems@embedded-brains.de> |
---|
15 | * |
---|
16 | * The license and distribution terms for this file may be |
---|
17 | * found in the file LICENSE in this distribution or at |
---|
18 | * http://www.rtems.org/license/LICENSE. |
---|
19 | */ |
---|
20 | |
---|
21 | #ifdef HAVE_CONFIG_H |
---|
22 | #include "config.h" |
---|
23 | #endif |
---|
24 | |
---|
25 | #include <rtems/score/isr.h> |
---|
26 | #include <rtems/score/nios2-utility.h> |
---|
27 | |
---|
28 | uint32_t _Nios2_MPU_Disable_protected( void ) |
---|
29 | { |
---|
30 | ISR_Level level; |
---|
31 | uint32_t config; |
---|
32 | |
---|
33 | _ISR_Local_disable( level ); |
---|
34 | config = _Nios2_MPU_Disable(); |
---|
35 | _ISR_Local_enable( level ); |
---|
36 | |
---|
37 | return config; |
---|
38 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.