MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / GetGicDist

Method GetGicDist

src/include/kernel_fdt.hpp:236–242  ·  view source on GitHub ↗

* @brief 获取 GIC Distributor 信息 * @return Expected > */

Source from the content-addressed store, hash-verified

234 * @return Expected<std::pair<uint64_t, size_t>>
235 */
236 [[nodiscard]] auto GetGicDist() const
237 -> Expected<std::pair<uint64_t, size_t>> {
238 return GetGIC().transform(
239 [](std::tuple<uint64_t, size_t, uint64_t, size_t> gic) {
240 return std::pair{std::get<0>(gic), std::get<1>(gic)};
241 });
242 }
243
244 /**
245 * @brief 获取 GIC CPU Interface (Redistributor) 信息

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected