Changeset b181c30 in rtems for c/src/lib


Ignore:
Timestamp:
Aug 19, 2009, 4:13:01 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 5, master
Children:
56035ca3
Parents:
0fed29a
Message:

2009-08-19 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, include/bsp.h, startup/setvec.c: Split idle method into its own file. Properly note to confdefs.h that this BSP has its own idle thread.
  • startup/bspidle.c: New file.
Location:
c/src/lib/libbsp/sparc/leon2
Files:
1 added
4 edited

Legend:

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

    r0fed29a rb181c30  
     12009-08-19      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * Makefile.am, include/bsp.h, startup/setvec.c: Split idle method into
     4        its own file. Properly note to confdefs.h that this BSP has its own
     5        idle thread.
     6        * startup/bspidle.c: New file.
     7
    182009-07-20      Joel Sherrill <joel.sherrill@oarcorp.com>
    29
  • c/src/lib/libbsp/sparc/leon2/Makefile.am

    r0fed29a rb181c30  
    5959    ../../sparc/shared/bspgetworkarea.c ../../sparc/shared/bspstart.c \
    6060    ../../shared/bootcard.c ../../shared/sbrk.c startup/setvec.c \
    61     startup/spurious.c
     61    startup/spurious.c startup/bspidle.c
    6262# gnatsupp
    6363libbsp_a_SOURCES += gnatsupp/gnatsupp.c ../../sparc/shared/gnatcommon.c
  • c/src/lib/libbsp/sparc/leon2/include/bsp.h

    r0fed29a rb181c30  
    3838 
    3939/*
    40  *  confdefs.h overrides for this BSP:
    41  *   - two termios serial ports
    42  *   - Interrupt stack space is not minimum if defined.
     40 *  BSP provides its own Idle thread body
    4341 */
    44 
    45 #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2
     42void *bsp_idle_thread( uintptr_t ignored );
     43#define BSP_IDLE_TASK_BODY bsp_idle_thread
    4644
    4745/*
    4846 * Network driver configuration
    4947 */
    50 
    5148struct rtems_bsdnet_ifconfig;
    52 extern int rtems_leon_open_eth_driver_attach (struct rtems_bsdnet_ifconfig *config);
    53 extern int rtems_smc91111_driver_attach_leon2(struct rtems_bsdnet_ifconfig *config);
     49extern int rtems_leon_open_eth_driver_attach(
     50  struct rtems_bsdnet_ifconfig *config
     51);
     52extern int rtems_smc91111_driver_attach_leon2(
     53  struct rtems_bsdnet_ifconfig *config
     54);
    5455#define RTEMS_BSP_NETWORK_DRIVER_NAME   "open_eth1"
    55 #define RTEMS_BSP_NETWORK_DRIVER_ATTACH_OPENETH  rtems_leon_open_eth_driver_attach
    56 #define RTEMS_BSP_NETWORK_DRIVER_ATTACH_SMC91111 rtems_smc91111_driver_attach_leon2
     56#define RTEMS_BSP_NETWORK_DRIVER_ATTACH_OPENETH \
     57          rtems_leon_open_eth_driver_attach
     58#define RTEMS_BSP_NETWORK_DRIVER_ATTACH_SMC91111 \
     59          rtems_smc91111_driver_attach_leon2
    5760
    5861/*
     
    6467 *  This is very dependent on the clock speed of the target.
    6568 */
    66 
    6769extern void Clock_delay(uint32_t microseconds);
    6870
    6971#define delay( microseconds ) Clock_delay(microseconds)
     72
    7073extern int   CPU_SPARC_HAS_SNOOPING;
    71 
    7274
    7375/* Constants */
  • c/src/lib/libbsp/sparc/leon2/startup/setvec.c

    r0fed29a rb181c30  
    6060  return previous_isr;
    6161}
    62 
    63 /* LEON specific power-down function */
    64 
    65 void _CPU_Thread_Idle_body( void )
    66 {
    67   while (1) {
    68     LEON_REG.Power_Down = LEON_REG.Power_Down;   /* make sure on load follows store to power-down reg */
    69   }
    70 }
    71 
Note: See TracChangeset for help on using the changeset viewer.