source: rtems/c/src/exec/score/cpu/hppa1.1/rtems.S @ 6ba9c27

4.104.114.84.9
Last change on this file since 6ba9c27 was 6ba9c27, checked in by Joel Sherrill <joel.sherrill@…>, on Jun 27, 2002 at 9:21:45 PM

2002-06-27 Joel Sherrill <joel@…>

  • Makefile.am, cpu.c, cpu_asm.S, rtems.S: Modified to make this all compile again. It has been a while since we have had a semi-working hppa1.1-rtems cross compiler. :)
  • Property mode set to 100644
File size: 1.6 KB
RevLine 
[ac7d5ef0]1/*  rtems.S
2 *
3 *  This file contains the single entry point code for
4 *  the HPPA implementation of RTEMS.
5 *
[08311cc3]6 *  COPYRIGHT (c) 1989-1999.
[ac7d5ef0]7 *  On-Line Applications Research Corporation (OAR).
8 *
[98e4ebf]9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
[03f2154e]11 *  http://www.OARcorp.com/rtems/license.html.
[ac7d5ef0]12 *
[da6375b]13 *  $Id$
[ac7d5ef0]14 */
15
[5e9b32b]16#include <rtems/score/hppa.h>
17#include <rtems/score/cpu_asm.h>
[ac7d5ef0]18
[6ba9c27]19#if 0
20#define TEXT_SEGMENT \
21        .SPACE  $TEXT$          !\
22        .SUBSPA $CODE$
23#define RO_SEGMENT \
24        .SPACE  $TEXT$          !\
25        .SUBSPA $lit$
26#define DATA_SEGMENT \
27        .SPACE  $PRIVATE$          !\
28        .SUBSPA $data$
29#define BSS_SEGMENT \
30        .SPACE  $PRIVATE$          !\
31        .SUBSPA $bss$
32#else
33#define TEXT_SEGMENT .text
34#define RO_SEGMENT .rodata
35#define DATA_SEGMENT .data
36#define BSS_SEGMENT .bss
37#endif
38
39
40#if 0
[ac7d5ef0]41        .SPACE $PRIVATE$
42        .SUBSPA $DATA$,QUAD=1,ALIGN=8,ACCESS=31
43        .SUBSPA $BSS$,QUAD=1,ALIGN=8,ACCESS=31,ZERO,SORT=82
44        .SPACE $TEXT$
45        .SUBSPA $LIT$,QUAD=0,ALIGN=8,ACCESS=44
46        .SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY
47        .SPACE $TEXT$
48        .SUBSPA $CODE$
[6ba9c27]49#endif
[ac7d5ef0]50
[6ba9c27]51        TEXT_SEGMENT
[ac7d5ef0]52        .align 32
53        .EXPORT cpu_jump_to_directive,ENTRY,PRIV_LEV=0
54cpu_jump_to_directive
55        .PROC
56        .CALLINFO FRAME=0,NO_CALLS
57        .ENTRY
58
[6ba9c27]59
[ac7d5ef0]60# invoke user interrupt handler
61
62# XXX: look at register usage and code
63# XXX: this is not necessarily right!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
64# r9 = directive number
65
66        .import   _Entry_points,data
67        ldil      L%_Entry_points,%r8
68        ldo       R%_Entry_points(%r8),%r8
69        ldwx,s    %r9(%r8),%r8
70
71        .call  ARGW0=GR
72        bv,n      0(%r8)
73        nop
74
75        .EXIT
76        .PROCEND
77
Note: See TracBrowser for help on using the repository browser.