diff options
author | Dan Streetman <ddstreet@ieee.org> | 2015-02-17 15:38:52 -0500 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-02-19 12:20:28 +1100 |
commit | b3749779d1c9ba4b5b1b81de3ddfa0da1b830138 (patch) | |
tree | 02673c4dc31ead4638ccd46cc1c49c70fb25ac7a /hw/p5ioc2-phb.c | |
parent | 7f91d66a0a3b0de9e6c729f031ee9adf9cea744b (diff) | |
download | skiboot-b3749779d1c9ba4b5b1b81de3ddfa0da1b830138.zip skiboot-b3749779d1c9ba4b5b1b81de3ddfa0da1b830138.tar.gz skiboot-b3749779d1c9ba4b5b1b81de3ddfa0da1b830138.tar.bz2 |
update users of GET/SETFIELD()
The last two patches updated GETFIELD() and SETFIELD() to no longer
require the user to specify the mask and shift of a field, and to
remove all _LSH defines and rename any _MASK defines. There are
some places where the masks were used directly, where the caller
needs to have the _MASK suffix removed. There are also two users
of SETFIELD() where the field name still has the _MASK suffix
because there is an existing macro with the base name.
Change users of SETFIELD() to include the _MASK suffix where needed.
Change direct users of any mask to remove the _MASK suffix.
Signed-off-by: Dan Streetman <ddstreet@ieee.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/p5ioc2-phb.c')
-rw-r--r-- | hw/p5ioc2-phb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/p5ioc2-phb.c b/hw/p5ioc2-phb.c index 0dcf0ce..91921b1 100644 --- a/hw/p5ioc2-phb.c +++ b/hw/p5ioc2-phb.c @@ -888,7 +888,7 @@ static void p5ioc2_phb_hwinit(struct p5ioc2_phb *p) out_be32(p->ca_regs + CA_PHBIDn(p->index), phbid); /* Set BUID */ - out_be32(p->regs + CAP_BUID, SETFIELD(CAP_BUID, 0, + out_be32(p->regs + CAP_BUID, SETFIELD(CAP_BUID_MASK, 0, P7_BUID_BASE(p->buid))); out_be32(p->regs + CAP_MSIBASE, P7_BUID_BASE(p->buid) << 16); |