Changeset 0a029a5 in rtems


Ignore:
Timestamp:
Jul 6, 2007, 9:09:33 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
8ddf67e
Parents:
1611e8ca
Message:

2007-07-06 Joel Sherrill <joel.sherrill@…>

  • Makefile.am: Add startup/bspclean.c
  • console/console.c: Remove warning.
  • include/bsp.h: Add conditionals for prompt for reset and resetting board.
  • start/start.S: Remove if 1 around section.
  • vectors/vectors_init.c: Do not print unless noisy init enabled.
  • startup/bspclean.c: New file. Will prompt for reset and reset.
Location:
c/src/lib/libbsp/powerpc/gen5200
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/gen5200/ChangeLog

    r1611e8ca r0a029a5  
     12007-07-06      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile.am: Add startup/bspclean.c
     4        * console/console.c: Remove warning.
     5        * include/bsp.h: Add conditionals for prompt for reset and resetting
     6        board.
     7        * start/start.S: Remove if 1 around section.
     8        * vectors/vectors_init.c: Do not print unless noisy init enabled.
     9        * startup/bspclean.c: New file. Will prompt for reset and reset.
     10
    1112007-07-06      Joel Sherrill <joel.sherrill@oarcorp.com>
    212
  • c/src/lib/libbsp/powerpc/gen5200/Makefile.am

    r1611e8ca r0a029a5  
    111111
    112112noinst_PROGRAMS += startup.rel
    113 startup_rel_SOURCES = ../../shared/bspclean.c ../../shared/bsplibc.c \
     113startup_rel_SOURCES = startup/bspclean.c ../../shared/bsplibc.c \
    114114    ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \
    115115    ../../shared/sbrk.c ../shared/uboot_dump_bdinfo.c \
  • c/src/lib/libbsp/powerpc/gen5200/console/console.c

    r1611e8ca r0a029a5  
    117117uint32_t mpc5200_uart_avail_mask = GEN5200_UART_AVAIL_MASK;
    118118
    119 uint8_t psc_minor_to_irqname[NUM_PORTS] =
    120   {BSP_SIU_IRQ_PSC1,
    121    BSP_SIU_IRQ_PSC2,
    122    BSP_SIU_IRQ_PSC3,
    123    BSP_SIU_IRQ_PSC4,
    124    BSP_SIU_IRQ_PSC5,
    125    BSP_SIU_IRQ_PSC6};
    126 static int mpc5200_psc_irqname_to_minor(int name)
    127 {
    128   int minor;
    129   uint8_t *chrptr;
    130 
    131   chrptr = memchr(psc_minor_to_irqname,
    132                   name,
    133                   sizeof(psc_minor_to_irqname));
    134   if (chrptr != NULL) {
    135     minor = chrptr - psc_minor_to_irqname;
    136   }
    137   else {
    138     minor = -1;
    139   }
    140   return minor;
    141 }
     119#if defined(UARTS_USE_TERMIOS_INT)
     120  uint8_t psc_minor_to_irqname[NUM_PORTS] =
     121    {BSP_SIU_IRQ_PSC1,
     122     BSP_SIU_IRQ_PSC2,
     123     BSP_SIU_IRQ_PSC3,
     124     BSP_SIU_IRQ_PSC4,
     125     BSP_SIU_IRQ_PSC5,
     126     BSP_SIU_IRQ_PSC6};
     127
     128  static int mpc5200_psc_irqname_to_minor(int name)
     129  {
     130    int minor;
     131    uint8_t *chrptr;
     132
     133    uuchrptr = memchr(psc_minor_to_irqname, name, sizeof(psc_minor_to_irqname));
     134    if (chrptr != NULL) {
     135      minor = chrptr - psc_minor_to_irqname;
     136    } else {
     137      minor = -1;
     138    }
     139    return minor;
     140  }
     141#endif
    142142
    143143static void A_BSP_output_char(char c);
  • c/src/lib/libbsp/powerpc/gen5200/include/bsp.h

    r1611e8ca r0a029a5  
    109109#define MBAR         0xF0000000
    110110
     111/* We want to prompt for a reset and then reset the board */
     112#define BSP_PRESS_KEY_FOR_RESET 1
     113#define BSP_RESET_BOARD_AT_EXIT 1
     114
    111115#else
    112116#error "board type not defined"
     
    209213
    210214#define SINGLE_CHAR_MODE
    211 #define UARTS_USE_TERMIOS_INT   1
     215/* #define UARTS_USE_TERMIOS_INT   1 */
    212216/* #define SHOW_MORE_INIT_SETTINGS 1 */
    213217
  • c/src/lib/libbsp/powerpc/gen5200/start/start.S

    r1611e8ca r0a029a5  
    474474        xor     r4, r4, r4                      /* Clear argc and argv */
    475475       
    476 #if 1     
    477476        bl      SYM (boot_card)                 /* Call the first C routine */
    478 #endif
    479        
     477
    480478#if defined(BRS5L)
    481479twiddle:                               
  • c/src/lib/libbsp/powerpc/gen5200/vectors/vectors_init.c

    r1611e8ca r0a029a5  
    185185        {
    186186
    187     printk("installing exception number %d\n", i);
     187    #if defined(SHOW_MORE_INIT_SETTINGS)
     188      printk("installing exception number %d\n", i);
     189    #endif
    188190
    189191        if (!ppc_vector_is_valid(i))
Note: See TracChangeset for help on using the changeset viewer.