diff options
author | Cédric Le Goater <clg@kaod.org> | 2019-10-01 09:00:01 +0200 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2019-11-04 10:52:47 +1100 |
commit | 2354857fcae538867c19d0f108da2e82c1a43001 (patch) | |
tree | 0236626633825beddad2e3fe0ce10697b6bc6889 /hw/xive.c | |
parent | ca46415e73e5fb7c68904777baf15f45c6240719 (diff) | |
download | skiboot-2354857fcae538867c19d0f108da2e82c1a43001.zip skiboot-2354857fcae538867c19d0f108da2e82c1a43001.tar.gz skiboot-2354857fcae538867c19d0f108da2e82c1a43001.tar.bz2 |
xive/p9: use predefined bitmasks to manipulate EQ addresses
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'hw/xive.c')
-rw-r--r-- | hw/xive.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3761,7 +3761,7 @@ static int64_t opal_xive_get_queue_info(uint64_t vp, uint32_t prio, if (out_qpage) { if (eq->w0 & EQ_W0_ENQUEUE) *out_qpage = - (((uint64_t)(eq->w2 & 0x0fffffff)) << 32) | eq->w3; + (((uint64_t)(eq->w2 & EQ_W2_OP_DESC_HI)) << 32) | eq->w3; else *out_qpage = 0; } @@ -3846,8 +3846,8 @@ static int64_t opal_xive_set_queue_info(uint64_t vp, uint32_t prio, case 16: case 21: case 24: - eq.w3 = ((uint64_t)qpage) & 0xffffffff; - eq.w2 = (((uint64_t)qpage)) >> 32 & 0x0fffffff; + eq.w3 = ((uint64_t)qpage) & EQ_W3_OP_DESC_LO; + eq.w2 = (((uint64_t)qpage) >> 32) & EQ_W2_OP_DESC_HI; eq.w0 |= EQ_W0_ENQUEUE; eq.w0 = SETFIELD(EQ_W0_QSIZE, eq.w0, qsize - 12); break; |