source: rtems/c/src/lib/libbsp/sparc64/usiii/start/bspinit.S @ 9b4422a2

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 1.0 KB
Line 
1/*
2 *  BSP specific initialization for Sparc64 RTEMS -- sun4u BSP
3 *
4 *  This code defines start code specific to the sun4u BSP
5 */
6
7/*
8 *
9 *  COPYRIGHT (c) 2010 Gedare Bloom.
10 *
11 *  The license and distribution terms for this file may be
12 *  found in the file LICENSE in this distribution or at
13 *  http://www.rtems.com/license/LICENSE.
14 */
15
16#include <rtems/asm.h>
17#include <rtems/score/cpu.h>
18
19#include <traptable.h>
20
21#define LSU_CR_IM_MASK  (0x0004)  /* bit 2 */
22#define LSU_CR_DM_MASK  (0x0008)  /* bit 3 */
23
24#define STACK_WINDOW_SAVE_AREA_SIZE (16*8)
25
26.register %g2, #scratch
27.register %g3, #scratch
28
29.section .text
30
31PUBLIC(_BSP_init)
32.global _BSP_init
33  SYM(_BSP_init):
34  save %sp, -STACK_WINDOW_SAVE_AREA_SIZE, %sp
35
36  ! copy the tba
37  sethi %hi(real_trap_table), %o0
38  rdpr  %tba, %o2
39  stx   %o2, [%o0 + %lo(real_trap_table)]
40
41!  /* copy firmware trap table so that RTEMS can install ISR handlers */
42!  setx  SYM(trap_table), %l0, %o0
43!  rdpr  %tba, %o1
44!  set TABLE_SIZE, %o2
45!  call memcpy
46!  nop
47
48  mov %g0, %o0
49  call _take_mmu
50  nop
51
52  ret
53  restore
54
Note: See TracBrowser for help on using the repository browser.