Skip to content

Commit

Permalink
[ARM] 4292/1: ns9xxx: Make REGGET consistant with REGSET
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Uwe Kleine-König authored and Russell King committed Apr 21, 2007
1 parent 235b185 commit fee64d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/asm-arm/arch-ns9xxx/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@
~(__REGVAL(reg ## _ ## field, value)))) \
| (__REGVAL(reg ## _ ## field, value))))

# define REGGET(reg, field) \
((reg & (reg ## _ ## field)) / (field & (-field)))
# define REGGET(var, reg, field) \
((var & (reg ## _ ## field)) / \
((reg ## _ ## field) & (-(reg ## _ ## field))))

#else

Expand Down

0 comments on commit fee64d1

Please sign in to comment.