1 | /* rtems.S |
---|
2 | * |
---|
3 | * This file contains the single entry point code for |
---|
4 | * the HPPA implementation of RTEMS. |
---|
5 | * |
---|
6 | * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. |
---|
7 | * On-Line Applications Research Corporation (OAR). |
---|
8 | * All rights assigned to U.S. Government, 1994. |
---|
9 | * |
---|
10 | * This material may be reproduced by or for the U.S. Government pursuant |
---|
11 | * to the copyright license under the clause at DFARS 252.227-7013. This |
---|
12 | * notice must appear in all copies of this file and its derivatives. |
---|
13 | * |
---|
14 | * $Id$ |
---|
15 | */ |
---|
16 | |
---|
17 | #include <hppa.h> |
---|
18 | #include <rtems/cpu_asm.h> |
---|
19 | |
---|
20 | .SPACE $PRIVATE$ |
---|
21 | .SUBSPA $DATA$,QUAD=1,ALIGN=8,ACCESS=31 |
---|
22 | .SUBSPA $BSS$,QUAD=1,ALIGN=8,ACCESS=31,ZERO,SORT=82 |
---|
23 | .SPACE $TEXT$ |
---|
24 | .SUBSPA $LIT$,QUAD=0,ALIGN=8,ACCESS=44 |
---|
25 | .SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY |
---|
26 | .SPACE $TEXT$ |
---|
27 | .SUBSPA $CODE$ |
---|
28 | |
---|
29 | .align 32 |
---|
30 | .EXPORT cpu_jump_to_directive,ENTRY,PRIV_LEV=0 |
---|
31 | cpu_jump_to_directive |
---|
32 | .PROC |
---|
33 | .CALLINFO FRAME=0,NO_CALLS |
---|
34 | .ENTRY |
---|
35 | |
---|
36 | # invoke user interrupt handler |
---|
37 | |
---|
38 | # XXX: look at register usage and code |
---|
39 | # XXX: this is not necessarily right!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
40 | # r9 = directive number |
---|
41 | |
---|
42 | .import _Entry_points,data |
---|
43 | ldil L%_Entry_points,%r8 |
---|
44 | ldo R%_Entry_points(%r8),%r8 |
---|
45 | ldwx,s %r9(%r8),%r8 |
---|
46 | |
---|
47 | .call ARGW0=GR |
---|
48 | bv,n 0(%r8) |
---|
49 | nop |
---|
50 | |
---|
51 | .EXIT |
---|
52 | .PROCEND |
---|
53 | |
---|