Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tapasco
tapasco
Commits
55c48b53
Commit
55c48b53
authored
May 19, 2017
by
Jens Korinth
Browse files
Fix initialization bug in libtapasco
parent
c0dca204
Changes
1
Hide whitespace changes
Inline
Side-by-side
arch/baseline/src/tapasco_address_map.c
View file @
55c48b53
...
...
@@ -27,14 +27,14 @@
#define TAPASCO_MAX_INSTANCES 128
static
platform_ctl_addr_t
_bases
[
TAPASCO_MAX_INSTANCES
]
=
{
-
1
};
static
platform_ctl_addr_t
_bases
[
TAPASCO_MAX_INSTANCES
]
=
{
0
};
static
inline
tapasco_reg_addr_t
base_addr
(
uint32_t
const
slot_id
)
{
assert
(
slot_id
<
TAPASCO_MAX_INSTANCES
);
tapasco_reg_addr_t
ret
=
_bases
[
slot_id
];
if
(
ret
==
-
1
)
ret
=
_bases
[
slot_id
]
=
platform_address_get_slot_base
(
slot_id
,
0
);
assert
(
ret
!=
-
1
);
if
(
!
ret
)
ret
=
(
_bases
[
slot_id
]
=
platform_address_get_slot_base
(
slot_id
,
0
)
)
;
assert
(
ret
>
0
);
return
ret
;
}
...
...
Jens Korinth
@jk
mentioned in commit
a831b501
·
Jul 14, 2017
mentioned in commit
a831b501
mentioned in commit a831b5015df6bd8f8d23ddd334a3b1159392de92
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment