Changeset ec11156e in rtems


Ignore:
Timestamp:
Dec 18, 2008, 6:51:28 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
738ea75
Parents:
534c893
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

    r534c893 rec11156e  
     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-10-02      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • c/src/lib/libbsp/powerpc/haleakala/startup/bspstart.c

    r534c893 rec11156e  
    8989EarlyUARTInit(int baudRate)
    9090{
    91   uint8_t* up = (uint8_t*)(BSP_UART_IOBASE_COM1);
     91  volatile uint8_t* up = (uint8_t*)(BSP_UART_IOBASE_COM1);
    9292  int divider = BSP_UART_BAUD_BASE / baudRate;
    9393  up[LCR] = DLAB;    /* Access DLM/DLL */
     
    152152DirectUARTWrite(const char c)
    153153{
    154   uint8_t* up = (uint8_t*)(BSP_UART_IOBASE_COM1);
     154  volatile uint8_t* up = (uint8_t*)(BSP_UART_IOBASE_COM1);
    155155  while ((up[LSR] & THRE) == 0) { ; }
    156156  up[THR] = c;
Note: See TracChangeset for help on using the changeset viewer.