Changeset d65c2b19 in rtems


Ignore:
Timestamp:
Dec 18, 2008, 6:51:49 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.9
Children:
44cec3c5
Parents:
757e3465
Message:

2008-12-18 Michael Hamel <nigel@…>

PR 1349/bsps

  • startup/bspstart.c: Add missing volatile on UART access pointer.
Location:
c/src/lib/libbsp/powerpc/haleakala
Files:
2 edited

Legend:

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

    r757e3465 rd65c2b19  
     12008-12-18      Michael Hamel <nigel@adi.co.nz>
     2
     3        PR 1349/bsps
     4        * startup/bspstart.c: Add missing volatile on UART access pointer.
     5
    162008-09-29      Ralf Corsépius <ralf.corsepius@rtems.org>
    27
  • c/src/lib/libbsp/powerpc/haleakala/startup/bspstart.c

    r757e3465 rd65c2b19  
    144144EarlyUARTInit(int baudRate)
    145145{
    146         uint8_t* up = (uint8_t*)(BSP_UART_IOBASE_COM1);
     146        volatile uint8_t* up = (uint8_t*)(BSP_UART_IOBASE_COM1);
    147147        int divider = BSP_UART_BAUD_BASE / baudRate;
    148148        up[LCR] = DLAB;         /* Access DLM/DLL */
     
    207207DirectUARTWrite(const char c)
    208208{
    209         uint8_t* up = (uint8_t*)(BSP_UART_IOBASE_COM1);
     209        volatile uint8_t* up = (uint8_t*)(BSP_UART_IOBASE_COM1);
    210210        while ((up[LSR] & THRE) == 0) { ; }
    211211        up[THR] = c;
Note: See TracChangeset for help on using the changeset viewer.