Last change
on this file since 9165349d was
80cf60e,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/15/20 at 07:48:32
|
Canonicalize config.h include
Use the following variant which was already used by most source files:
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
|
-
Property mode set to
100644
|
File size:
679 bytes
|
Line | |
---|
1 | /* |
---|
2 | * COPYRIGHT (c) 2014 Hesham ALMatary <heshamelmatary@gmail.com> |
---|
3 | * |
---|
4 | * The license and distribution terms for this file may be |
---|
5 | * found in the file LICENSE in this distribution or at |
---|
6 | * http://www.rtems.org/license/LICENSE. |
---|
7 | */ |
---|
8 | |
---|
9 | #ifdef HAVE_CONFIG_H |
---|
10 | #include "config.h" |
---|
11 | #endif |
---|
12 | |
---|
13 | #include <rtems/asm.h> |
---|
14 | |
---|
15 | .section .text |
---|
16 | |
---|
17 | PUBLIC(_CPU_Context_volatile_clobber) |
---|
18 | SYM(_CPU_Context_volatile_clobber): |
---|
19 | |
---|
20 | .macro clobber_register reg |
---|
21 | l.addi r0, r0, -1 |
---|
22 | l.addi \reg, r0, 0 |
---|
23 | .endm |
---|
24 | |
---|
25 | clobber_register r3 |
---|
26 | clobber_register r4 |
---|
27 | clobber_register r5 |
---|
28 | clobber_register r6 |
---|
29 | clobber_register r7 |
---|
30 | clobber_register r8 |
---|
31 | clobber_register r13 |
---|
32 | clobber_register r31 |
---|
33 | |
---|
34 | l.jr r9 |
---|
35 | l.nop |
---|
Note: See
TracBrowser
for help on using the repository browser.