MCPcopy Create free account
hub / github.com/coreboot/coreboot / offset_to_ptr

Function offset_to_ptr

util/cbfstool/fit.c:126–130  ·  view source on GitHub ↗

* Get a pointer from an offset. This function assumes the ROM is located * in the host address space at [4G - romsize -> 4G). It also assume all * pointers have values within this address range. */

Source from the content-addressed store, hash-verified

124 * pointers have values within this address range.
125 */
126static inline uint32_t offset_to_ptr(fit_offset_converter_t helper,
127 const struct buffer *region, int offset)
128{
129 return -helper(region, offset);
130}
131
132/*
133 * Return the number of FIT entries.

Callers 1

fit_add_microcode_fileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected