gic_v3.cc (13756:12aa26df8c2f) gic_v3.cc (13877:a4ac726b549d)
1/*
2 * Copyright (c) 2018 Metempsy Technology Consulting
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 44 unchanged lines hidden (view full) ---

53 redistRange = RangeSize(params()->redist_addr,
54 Gicv3Redistributor::ADDR_RANGE_SIZE * sys->numContexts() - 1);
55 addrRanges = {distRange, redistRange};
56 BaseGic::init();
57 distributor = new Gicv3Distributor(this, params()->it_lines);
58 redistributors.resize(sys->numContexts(), nullptr);
59 cpuInterfaces.resize(sys->numContexts(), nullptr);
60
1/*
2 * Copyright (c) 2018 Metempsy Technology Consulting
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 44 unchanged lines hidden (view full) ---

53 redistRange = RangeSize(params()->redist_addr,
54 Gicv3Redistributor::ADDR_RANGE_SIZE * sys->numContexts() - 1);
55 addrRanges = {distRange, redistRange};
56 BaseGic::init();
57 distributor = new Gicv3Distributor(this, params()->it_lines);
58 redistributors.resize(sys->numContexts(), nullptr);
59 cpuInterfaces.resize(sys->numContexts(), nullptr);
60
61 panic_if(sys->numContexts() > params()->cpu_max,
62 "Exceeding maximum number of PEs supported by GICv3: "
63 "using %u while maximum is %u\n", sys->numContexts(),
64 params()->cpu_max);
65
61 for (int i = 0; i < sys->numContexts(); i++) {
62 redistributors[i] = new Gicv3Redistributor(this, i);
63 cpuInterfaces[i] = new Gicv3CPUInterface(this, i);
64 }
65
66 distributor->init();
67
68 for (int i = 0; i < sys->numContexts(); i++) {

--- 191 unchanged lines hidden ---
66 for (int i = 0; i < sys->numContexts(); i++) {
67 redistributors[i] = new Gicv3Redistributor(this, i);
68 cpuInterfaces[i] = new Gicv3CPUInterface(this, i);
69 }
70
71 distributor->init();
72
73 for (int i = 0; i < sys->numContexts(); i++) {

--- 191 unchanged lines hidden ---