source: rtems/cpukit/score/cpu/arm/arm-context-volatile-clobber.S @ 9dcc683

4.115
Last change on this file since 9dcc683 was 39993d6, checked in by Sebastian Huber <sebastian.huber@…>, on 05/07/13 at 08:14:55

score: Add CPU context validation

  • Property mode set to 100644
File size: 689 bytes
Line 
1/*
2 * Copyright (c) 2013 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Dornierstr. 4
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
15#ifdef HAVE_CONFIG_H
16  #include "config.h"
17#endif
18
19#include <rtems/asm.h>
20
21        .section        .text
22
23FUNCTION_THUMB_ENTRY(_CPU_Context_volatile_clobber)
24
25.macro clobber_register reg
26        sub     r0, r0, #1
27        mov     \reg, r0
28.endm
29
30        clobber_register        r1
31        clobber_register        r2
32        clobber_register        r3
33        clobber_register        r12
34
35        bx      lr
36
37FUNCTION_END(_CPU_Context_volatile_clobber)
Note: See TracBrowser for help on using the repository browser.