[ARM] 4292/1: ns9xxx: Make REGGET consistant with REGSET
This implies that REGGET gets a new parameter "var" to allow to hold the actual register value in a variable. Moreover REGGET was broken because it used "field" instead of "reg ## _ ## field" which proves that there are no callers to fix :-) Signed-off-by: Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
235b185ce4
commit
fee64d1b55
@ -51,8 +51,9 @@
|
|||||||
~(__REGVAL(reg ## _ ## field, value)))) \
|
~(__REGVAL(reg ## _ ## field, value)))) \
|
||||||
| (__REGVAL(reg ## _ ## field, value))))
|
| (__REGVAL(reg ## _ ## field, value))))
|
||||||
|
|
||||||
# define REGGET(reg, field) \
|
# define REGGET(var, reg, field) \
|
||||||
((reg & (reg ## _ ## field)) / (field & (-field)))
|
((var & (reg ## _ ## field)) / \
|
||||||
|
((reg ## _ ## field) & (-(reg ## _ ## field))))
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user