diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-18 18:51:28 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-18 18:51:28 +0000 |
commit | ec11156e231530ab9383ecd0100811d823724656 (patch) | |
tree | eab922e86c916581cf0e48d0787d19b0af7a6afa /c | |
parent | 2008-12-18 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-ec11156e231530ab9383ecd0100811d823724656.tar.bz2 |
2008-12-18 Michael Hamel <nigel@adi.co.nz>
PR 1349/bsps
* startup/bspstart.c: Add missing volatile on UART access pointer.
Diffstat (limited to 'c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/haleakala/ChangeLog | 5 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/haleakala/startup/bspstart.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/powerpc/haleakala/ChangeLog b/c/src/lib/libbsp/powerpc/haleakala/ChangeLog index 59c6d121b6..b4c8eb9f14 100644 --- a/c/src/lib/libbsp/powerpc/haleakala/ChangeLog +++ b/c/src/lib/libbsp/powerpc/haleakala/ChangeLog @@ -1,3 +1,8 @@ +2008-12-18 Michael Hamel <nigel@adi.co.nz> + + PR 1349/bsps + * startup/bspstart.c: Add missing volatile on UART access pointer. + 2008-10-02 Joel Sherrill <joel.sherrill@OARcorp.com> * Makefile.am, preinstall.am: Use shared tm27.h stub. diff --git a/c/src/lib/libbsp/powerpc/haleakala/startup/bspstart.c b/c/src/lib/libbsp/powerpc/haleakala/startup/bspstart.c index c7211fae3a..f4737d6a45 100644 --- a/c/src/lib/libbsp/powerpc/haleakala/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/haleakala/startup/bspstart.c @@ -88,7 +88,7 @@ uint32_t bsp_timer_average_overhead; static void EarlyUARTInit(int baudRate) { - uint8_t* up = (uint8_t*)(BSP_UART_IOBASE_COM1); + volatile uint8_t* up = (uint8_t*)(BSP_UART_IOBASE_COM1); int divider = BSP_UART_BAUD_BASE / baudRate; up[LCR] = DLAB; /* Access DLM/DLL */ up[DLL] = divider & 0x0FF; @@ -151,7 +151,7 @@ void Init_FPGA(void) static void DirectUARTWrite(const char c) { - uint8_t* up = (uint8_t*)(BSP_UART_IOBASE_COM1); + volatile uint8_t* up = (uint8_t*)(BSP_UART_IOBASE_COM1); while ((up[LSR] & THRE) == 0) { ; } up[THR] = c; if (c=='\n') |