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

Function string_to_arch

util/cbfstool/common.c:143–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141};
142
143uint32_t string_to_arch(const char *arch_string)
144{
145 size_t i;
146 uint32_t ret = CBFS_ARCHITECTURE_UNKNOWN;
147
148 for (i = 0; i < ARRAY_SIZE(arch_names); i++) {
149 if (!strcasecmp(arch_string, arch_names[i].name)) {
150 ret = arch_names[i].arch;
151 break;
152 }
153 }
154
155 return ret;
156}
157
158const char *arch_to_string(uint32_t a)
159{

Callers 1

mainFunction · 0.85

Calls 1

strcasecmpFunction · 0.85

Tested by

no test coverage detected