diff options
author | Eric Biederman <ebiederm@xmission.com> | 2003-06-10 21:22:07 +0000 |
---|---|---|
committer | Eric Biederman <ebiederm@xmission.com> | 2003-06-10 21:22:07 +0000 |
commit | 6aa31cc754744a83177ea922e71c6bdf02cad5df (patch) | |
tree | 00fc8a3cc81f367240eb5ac5a627841d1bb0a1a0 /util/romcc/tests/raminit_test2.c | |
parent | dc18ef018d080f050de9e28be913f544d3009cb2 (diff) |
- Update romcc to version 0.27 and add more tests.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@865 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/romcc/tests/raminit_test2.c')
-rw-r--r-- | util/romcc/tests/raminit_test2.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/util/romcc/tests/raminit_test2.c b/util/romcc/tests/raminit_test2.c index 8dd9c977e5..68747a7a91 100644 --- a/util/romcc/tests/raminit_test2.c +++ b/util/romcc/tests/raminit_test2.c @@ -1,7 +1,8 @@ -#define HAVE_STRING_SUPPORT 0 -#define HAVE_CAST_SUPPORT 0 -#define HAVE_STATIC_ARRAY_SUPPORT 0 -#define HAVE_POINTER_SUPPORT 0 +#define HAVE_STRING_SUPPORT 1 +#define HAVE_CAST_SUPPORT 1 +#define HAVE_STATIC_ARRAY_SUPPORT 1 +#define HAVE_POINTER_SUPPORT 1 +#define HAVE_MACRO_ARG_SUPPORT 0 void outb(unsigned char value, unsigned short port) { @@ -196,7 +197,7 @@ void __console_tx_string(char *str) { unsigned char ch; while((ch = *str++) != '\0') { - __console_tx_byte(ch); + __console_tx_char(ch); } } #else @@ -1112,7 +1113,11 @@ static void dimms_read(unsigned long offset) print_debug("\n"); #endif #if HAVE_POINTER_SUPPORT +#if HAVE_MACRO_ARG_SUPPORT dummy = RAM(unsigned long, addr); +#else + dummy = *((volatile unsigned long *)(addr)); +#endif #endif #if HAVE_STRING_SUPPORT print_debug("Reading "); @@ -1120,7 +1125,11 @@ static void dimms_read(unsigned long offset) print_debug("\n"); #endif #if HAVE_POINTER_SUPPORT +#if HAVE_MACRO_ARG_SUPPORT dummy = RAM(unsigned long, addr ^ 0xdff8); +#else + dummy = *((volatile unsigned long *)(addr ^ 0xdff8)); +#endif #endif #if HAVE_STRING_SUPPORT print_debug("Read "); |