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

Function region_create_untrusted

src/commonlib/include/commonlib/region.h:105–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105static inline enum cb_err region_create_untrusted(
106 struct region *r, unsigned long long offset, unsigned long long size)
107{
108 if (offset > SIZE_MAX || size > SIZE_MAX || (size_t)(offset + size - 1) < offset)
109 return CB_ERR_ARG;
110 *r = (struct region){ .offset = offset, .size = size };
111 return CB_SUCCESS;
112}
113
114/* Return 1 if child is subregion of parent, else 0. */
115int region_is_subregion(const struct region *p, const struct region *c);

Callers 3

smm_points_to_smramFunction · 0.85
add_mmap_windowFunction · 0.85
parse_regionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected