[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:
Uwe Kleine-König 2007-03-28 17:18:30 +01:00 committed by Russell King
parent 235b185ce4
commit fee64d1b55

View File

@ -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