mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-24 00:59:56 +08:00
DEVICE(9): Fix __BUS_ACCESSOR()
This commit is contained in:
parent
4e3a5d3f03
commit
4e17f143de
@ -814,10 +814,8 @@ static __inline type varp ## _get_ ## var(device_t dev) \
|
|||||||
static __inline void varp ## _set_ ## var(device_t dev, type t) \
|
static __inline void varp ## _set_ ## var(device_t dev, type t) \
|
||||||
{ \
|
{ \
|
||||||
uintptr_t v = (uintptr_t) t; \
|
uintptr_t v = (uintptr_t) t; \
|
||||||
int err; \
|
|
||||||
BUS_WRITE_IVAR(device_get_parent(dev), dev, \
|
BUS_WRITE_IVAR(device_get_parent(dev), dev, \
|
||||||
ivarp ## _IVAR_ ## ivar, v); \
|
ivarp ## _IVAR_ ## ivar, v); \
|
||||||
BSD_ASSERT(err == 0); \
|
|
||||||
}
|
}
|
||||||
#endif /* __rtems__ */
|
#endif /* __rtems__ */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user