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

Function find_fpsba

util/ifdtool/ifdtool.c:194–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194static struct fpsba *find_fpsba(char *image, int size)
195{
196 struct fdbar *fdb = find_fd(image, size);
197 if (!fdb)
198 return NULL;
199 struct fpsba *fpsba =
200 (struct fpsba *) (image + (((fdb->flmap1 >> 16) & 0xff) << 4));
201
202 int SSL = ((fdb->flmap1 >> 24) & 0xff) * sizeof(uint32_t);
203 if ((((char *)fpsba) + SSL) >= (image + size))
204 return NULL;
205 return fpsba;
206}
207
208static struct fmsba *find_fmsba(char *image, int size)
209{

Callers 5

dump_fdFunction · 0.85
disable_gpr0Function · 0.85
enable_gpr0Function · 0.85
is_gpr0_protectedFunction · 0.85
mainFunction · 0.85

Calls 1

find_fdFunction · 0.85

Tested by

no test coverage detected