summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorTill Straumann <strauman@slac.stanford.edu>2008-07-22 05:30:21 +0000
committerTill Straumann <strauman@slac.stanford.edu>2008-07-22 05:30:21 +0000
commitc607d50e707a5eb8951fdf807e21807ea7309d45 (patch)
treee09aea382db50a77ef92002d710568abaed03059 /c
parent2008-07-21 Till Straumann <strauman@slac.stanford.edu> (diff)
downloadrtems-c607d50e707a5eb8951fdf807e21807ea7309d45.tar.bz2
2008-07-21 Till Straumann <strauman@slac.stanford.edu>
* console/consolelite.c: use base address from RTEMS_XPARAMETERS_H rather than hardcoded hex number.
Diffstat (limited to 'c')
-rw-r--r--c/src/lib/libbsp/powerpc/virtex/ChangeLog5
-rw-r--r--c/src/lib/libbsp/powerpc/virtex/console/consolelite.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/powerpc/virtex/ChangeLog b/c/src/lib/libbsp/powerpc/virtex/ChangeLog
index 9748d2c9e7..c617fa2313 100644
--- a/c/src/lib/libbsp/powerpc/virtex/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/virtex/ChangeLog
@@ -1,3 +1,8 @@
+2008-07-21 Till Straumann <strauman@slac.stanford.edu>
+
+ * console/consolelite.c: use base address from RTEMS_XPARAMETERS_H
+ rather than hardcoded hex number.
+
2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/bspstart.c: Add capability for bootcard.c BSP Initialization
diff --git a/c/src/lib/libbsp/powerpc/virtex/console/consolelite.c b/c/src/lib/libbsp/powerpc/virtex/console/consolelite.c
index 99f40bca02..5c7e8ee6fa 100644
--- a/c/src/lib/libbsp/powerpc/virtex/console/consolelite.c
+++ b/c/src/lib/libbsp/powerpc/virtex/console/consolelite.c
@@ -23,6 +23,7 @@
#include <libchip/serial.h>
#include <libchip/sersupp.h>
+#include RTEMS_XPARAMETERS_H
/* Status Register Masks */
#define PARITY_ERROR 0x80 /* Parity Error */
@@ -260,7 +261,7 @@ console_tbl Console_Port_Tbl[] = {
16, /* ulMargin */
8, /* ulHysteresis */
(void *) NULL, /* NULL */ /* pDeviceParams */
- 0x40600000, /* ulCtrlPort1 */
+ STDIN_BASEADDRESS, /* ulCtrlPort1 */
0, /* ulCtrlPort2 */
0, /* ulDataPort */
NULL, /* getRegister */