smmu_v3_cmdexec.cc (14064:870553bad072) | smmu_v3_cmdexec.cc (14065:f925f90bda01) |
---|---|
1/* 2 * Copyright (c) 2013, 2018-2019 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 42 unchanged lines hidden (view full) --- 51 a.ifc = nullptr; 52 a.delay = 0; 53 yield(a); 54 55 while (true) { 56 busy = true; 57 58 while (true) { | 1/* 2 * Copyright (c) 2013, 2018-2019 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 42 unchanged lines hidden (view full) --- 51 a.ifc = nullptr; 52 a.delay = 0; 53 yield(a); 54 55 while (true) { 56 busy = true; 57 58 while (true) { |
59 int sizeMask = 60 mask(smmu.regs.cmdq_base & Q_BASE_SIZE_MASK) & Q_CONS_PROD_MASK; | 59 int sizeMask = mask(smmu.regs.cmdq_base & Q_BASE_SIZE_MASK); |
61 62 if ((smmu.regs.cmdq_cons & sizeMask) == 63 (smmu.regs.cmdq_prod & sizeMask)) 64 break; // command queue empty 65 66 Addr cmdAddr = 67 (smmu.regs.cmdq_base & Q_BASE_ADDR_MASK) + 68 (smmu.regs.cmdq_cons & sizeMask) * sizeof(SMMUCommand); --- 15 unchanged lines hidden --- | 60 61 if ((smmu.regs.cmdq_cons & sizeMask) == 62 (smmu.regs.cmdq_prod & sizeMask)) 63 break; // command queue empty 64 65 Addr cmdAddr = 66 (smmu.regs.cmdq_base & Q_BASE_ADDR_MASK) + 67 (smmu.regs.cmdq_cons & sizeMask) * sizeof(SMMUCommand); --- 15 unchanged lines hidden --- |