Search
lxdream.org :: lxdream :: r343:bf4bf0da94cc
lxdream 0.9.1
released Jun 29
Download Now
changeset343:bf4bf0da94cc
parent342:850502f0e8de
child344:bac957de4843
authornkeynes
dateWed Jan 31 11:00:25 2007 +0000 (13 years ago)
Ensure ide is active before doing register tests on it
test/testregs.c
1.1 --- a/test/testregs.c Wed Jan 31 10:58:42 2007 +0000
1.2 +++ b/test/testregs.c Wed Jan 31 11:00:25 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: testregs.c,v 1.3 2007-01-26 02:08:19 nkeynes Exp $
1.6 + * $Id: testregs.c,v 1.4 2007-01-31 11:00:25 nkeynes Exp $
1.7 *
1.8 * Register mask tests. These are simple "write value to register and check
1.9 * that we read back what we expect" tests.
1.10 @@ -193,6 +193,8 @@
1.11 int i;
1.12 int failures = 0;
1.13 int tests = 0;
1.14 +
1.15 + ide_init();
1.16
1.17 for( i=0; test_cases[i].reg != 0; i++ ) {
1.18 unsigned int oldval = long_read( test_cases[i].reg );
.