Home
last modified time | relevance | path

Searched refs:sect (Results 1 – 4 of 4) sorted by relevance

/device/google/contexthub/util/nanoapp_postprocess/
Dpostprocess.c102 struct SectInfo *sect; in handleApp() local
125 sect = &bin->sect; in handleApp()
128 relocs = (struct RelocEntry*)(buf + sect->rel_start - FLASH_BASE); in handleApp()
129 syms = (struct SymtabEntry*)(buf + sect->rel_end - FLASH_BASE); in handleApp()
130 numRelocs = (sect->rel_end - sect->rel_start) / sizeof(struct RelocEntry); in handleApp()
131 numSyms = (bufUsed + FLASH_BASE - sect->rel_end) / sizeof(struct SymtabEntry); in handleApp()
134 if (numRelocs * sizeof(struct RelocEntry) + sect->rel_start != sect->rel_end) { in handleApp()
138 if (numSyms * sizeof(struct SymtabEntry) + sect->rel_end != bufUsed + FLASH_BASE) { in handleApp()
177 if (IS_IN_RANGE_E(relocs[i].where, sect->bss_start, sect->bss_end)) in handleApp()
179 else if (IS_IN_RANGE_E(relocs[i].where, sect->data_start, sect->data_end)) in handleApp()
[all …]
/device/google/contexthub/firmware/src/cpu/cortexm4f/
DappSupport.c143 const struct SectInfo *sect = &app->sect; in cpuAppLoad() local
144 const uint8_t *relocsStart = (const uint8_t*)APP_FLASH_RELOC(app, sect->rel_start); in cpuAppLoad()
145 const uint8_t *relocsEnd = (const uint8_t*)APP_FLASH_RELOC(app, sect->rel_end); in cpuAppLoad()
146 uint8_t *mem = heapAlloc(sect->bss_end); in cpuAppLoad()
152 platInfo->got = mem + sect->data_start; in cpuAppLoad()
155 memset(mem + sect->bss_start, 0, sect->bss_end - sect->bss_start); in cpuAppLoad()
158 …memcpy(mem + sect->data_start, (uint8_t*)APP_FLASH_RELOC(app, sect->data_data), sect->got_end - se… in cpuAppLoad()
173 heapFree((uint8_t*)platInfo->got - app->sect.got_start); in cpuAppUnload()
/device/google/contexthub/lib/include/nanohub/
Dnanohub.h82 #define FLASH_RELOC_OFFSET offsetof(struct AppHdr, sect) // used by appSupport.c at run time
83 #define BINARY_RELOC_OFFSET offsetof(struct BinHdr, sect) // used by postprocess at build time
93 struct SectInfo sect; member
100 struct SectInfo sect; member
163 struct SectInfo sect; member
/device/google/contexthub/firmware/src/
Dseos.c1227 *appSize = app->sect.rel_end; in osAppInfoById()
1248 *appSize = app->sect.rel_end; in osAppInfoByIndex()