Deleted Added
sdiff udiff text old ( 14064:870553bad072 ) new ( 14065:f925f90bda01 )
full compact
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;
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 ---