5
Last change
on this file since 2afb22b was
9460333e,
checked in by Sebastian Huber <sebastian.huber@…>, on 06/20/16 at 08:08:39
|
sparc: Rework CPU counter support
Rework CPU counter support to enable use of the GR740 up-counter via
%asr22 and %asr23.
|
-
Property mode set to
100644
|
File size:
716 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Copyright (c) 2016 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.org/license/LICENSE. |
---|
13 | */ |
---|
14 | |
---|
15 | #if HAVE_CONFIG_H |
---|
16 | #include "config.h" |
---|
17 | #endif |
---|
18 | |
---|
19 | #include <rtems/asm.h> |
---|
20 | |
---|
21 | .section ".text" |
---|
22 | .align 4 |
---|
23 | |
---|
24 | PUBLIC(_SPARC_Counter_read_address) |
---|
25 | SYM(_SPARC_Counter_read_address): |
---|
26 | sethi %hi(_SPARC_Counter + 8), %o0 |
---|
27 | ld [%o0 + %lo(_SPARC_Counter + 8)], %o0 |
---|
28 | jmp %o7 + 8 |
---|
29 | ld [%o0], %o0 |
---|
30 | |
---|
31 | PUBLIC(_SPARC_Counter_read_asr23) |
---|
32 | SYM(_SPARC_Counter_read_asr23): |
---|
33 | jmp %o7 + 8 |
---|
34 | mov %asr23, %o0 |
---|
Note: See
TracBrowser
for help on using the repository browser.