Changeset d490fff in rtems


Ignore:
Timestamp:
Oct 5, 2005, 7:24:48 PM (15 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
73c2d23
Parents:
e75e10d
Message:

2005-10-05 Jiri Gaisler <jiri@…>

Edvin Catovic <edvin@…>
Konrad Eisele <konrad@…>

PR 827/bsps

  • Makefile.am, bspstart.c, gnatcommon.c, start.S: Portion of large update of SPARC BSPs. Includes addition of sis, leon2 and leon3 BSPs, deletion of leon BSP, addition of SMC91111 NIC driver and much more.
Location:
c/src/lib/libbsp/sparc/shared
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/shared/ChangeLog

    re75e10d rd490fff  
     12005-10-05  Jiri Gaisler <jiri@gaisler.com>
     2            Edvin Catovic <edvin@gaisler.com>
     3            Konrad Eisele <konrad@gaisler.com>
     4
     5        PR 827/bsps
     6        * Makefile.am, bspstart.c, gnatcommon.c, start.S: Portion of large
     7        update of SPARC BSPs. Includes addition of sis, leon2 and leon3 BSPs,
     8        deletion of leon BSP, addition of SMC91111 NIC driver and much more.
     9
    1102003-09-04      Joel Sherrill <joel@OARcorp.com>
    211
  • c/src/lib/libbsp/sparc/shared/Makefile.am

    re75e10d rd490fff  
    44
    55
    6 EXTRA_DIST = bspclean.c bspstart.c gnatcommon.c start.S
     6EXTRA_DIST = bspclean.c gnatcommon.c start.S
    77
    88include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libbsp/sparc/shared/bspstart.c

    re75e10d rd490fff  
    199199  Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
    200200
    201   work_space_start =
    202     (unsigned char *)rdb_start - BSP_Configuration.work_space_size;
     201  work_space_start = (unsigned char *)rdb_start;
     202  work_space_start -= BSP_Configuration.work_space_size;
    203203
    204204  if ( work_space_start <= (unsigned char *)&end ) {
  • c/src/lib/libbsp/sparc/shared/gnatcommon.c

    re75e10d rd490fff  
    44 * Jiri Gaisler, ESA/ESTEC, 17-02-1999.
    55 *
     6 *  $Id$
    67 */
    78
  • c/src/lib/libbsp/sparc/shared/start.S

    re75e10d rd490fff  
    1212
    1313#include <asm.h>
     14#include <bspopts.h>
    1415
    1516/*
     
    217218        nop
    218219
    219         call    __bsp_board_init
    220         nop
    221 
    222 
    223220        set     (SYM(rdb_start)), %g6   ! End of work-space area
    224221        st      %sp, [%g6]
     
    230227        mov     %sp, %fp                ! Set frame pointer
    231228        nop
     229
     230#if ENABLE_SIS_QUIRKS==1
     231
     232#include <erc32.h>
     233       
     234/* Check if MEC is initialised. If not, this means that we are
     235   running on the simulator. Initiate some of the parameters
     236   that are done by the boot-prom otherwise.
     237*/
     238
     239        set     SYM(ERC32_MEC), %g3  ! g3 = base address of peripherals
     240        ld      [%g3], %g2             
     241        set     0xfe080000, %g1
     242        andcc   %g1, %g2, %g0
     243        bne     2f
     244 
     245 /* Set the correct memory size in MEC memory config register */
     246 
     247        set     SYM(PROM_SIZE), %l0     
     248        set     0, %l1
     249        srl     %l0, 18, %l0
     2501:
     251        tst     %l0
     252        srl     %l0, 1, %l0
     253        bne,a   1b
     254        inc     %l1
     255        sll     %l1, 8, %l1
     256 
     257        set     SYM(RAM_SIZE), %l0     
     258        srl     %l0, 19, %l0
     2591:
     260        tst     %l0
     261        srl     %l0, 1, %l0
     262        bne,a   1b
     263        inc     %l1
     264        sll     %l1, 10, %l1
     265 
     266        ! set the Memory Configuration
     267        st     %l1, [ %g3 + ERC32_MEC_MEMORY_CONFIGURATION_OFFSET ]
     268        !DISABLE THE HARDWARE WATCHDOG
     269        st     %g0, [ %g3 + ERC32_MEC_WATCHDOG_TRAP_DOOR_SET_OFFSET ]
     270        !Reduce the number of wait states to 0 for all memory areas.
     271        st     %g0, [ %g3 + ERC32_MEC_WAIT_STATE_CONFIGURATION_OFFSET ]
     272         
     273        set     SYM(RAM_START), %l1  ! Cannot use RAM_END due to bug in linker
     274        set     SYM(RAM_SIZE), %l2
     275        add     %l1, %l2, %sp
     276        st      %sp, [%g6]     
     277
     278
     279        set     SYM(CLOCK_SPEED), %g6   ! Use 14 MHz in simulator
     280        set     14, %g1
     281        st      %g1, [%g6]
     282       
     2832:     
     284#endif 
    232285
    233286        /*
Note: See TracChangeset for help on using the changeset viewer.