summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-10-01 12:41:47 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-10-02 07:01:36 +0200
commit2763f530d37ce6583dabac928c56172d931a8be0 (patch)
tree96f19511ee70beff865ec8d0ee1523afc6d1e47a /testsuites
parentRevert "record: Add wrappers for malloc() functions" (diff)
downloadrtems-2763f530d37ce6583dabac928c56172d931a8be0.tar.bz2
score: Remove superfluous timecounter members
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/sptests/sptimecounter01/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuites/sptests/sptimecounter01/init.c b/testsuites/sptests/sptimecounter01/init.c
index 6976f7bc80..9fc36583c4 100644
--- a/testsuites/sptests/sptimecounter01/init.c
+++ b/testsuites/sptests/sptimecounter01/init.c
@@ -38,8 +38,9 @@ static test_context test_instance;
static uint32_t test_get_timecount_soft(struct timecounter *tc)
{
- test_context *ctx = tc->tc_priv;
+ test_context *ctx;
+ ctx = RTEMS_CONTAINER_OF(tc, test_context, tc_soft);
++ctx->tc_soft_counter;
return ctx->tc_soft_counter;
@@ -124,7 +125,6 @@ void boot_card(const char *cmdline)
tc_soft->tc_counter_mask = 0x0fffffff;
tc_soft->tc_frequency = soft_freq;
tc_soft->tc_quality = 1234;
- tc_soft->tc_priv = ctx;
_Timecounter_Install(tc_soft);
assert(ctx->tc_soft_counter == 3);