Home
last modified time | relevance | path

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

/device/google/contexthub/util/nanoapp_postprocess/
Dpostprocess_elf.c233 struct SectInfo *sect; in finalizeAndWrite() local
254 app.sect = bin->sect; in finalizeAndWrite()
263 sect = &app.sect; in finalizeAndWrite()
267 uint32_t codeAndRoDataSz = sect->data_data; in finalizeAndWrite()
268 uint32_t relocsSz = sect->rel_end - sect->rel_start; in finalizeAndWrite()
269 uint32_t gotSz = sect->got_end - sect->data_start; in finalizeAndWrite()
270 uint32_t bssSz = sect->bss_end - sect->bss_start; in finalizeAndWrite()
301 struct SectInfo *sect; in handleApp() local
323 sect = &bin->sect; in handleApp()
327 relocs = (struct RelocEntry*)(buf + sect->rel_start - FLASH_BASE); in handleApp()
[all …]
Dpostprocess.c242 struct SectInfo *sect; in finalizeAndWrite() local
260 app.sect = bin->sect; in finalizeAndWrite()
262 sect = &app.sect; in finalizeAndWrite()
267 size_t gotSz = sect->got_end - sect->data_start; in finalizeAndWrite()
268 size_t bssSz = sect->bss_end - sect->bss_start; in finalizeAndWrite()
364 flashDataOffset = app->bin->sect.data_data - FLASH_BASE; in fixupReloc()
408 struct SectInfo *sect; in handleApp() local
429 sect = &bin->sect; in handleApp()
432 …if (!IS_IN_FLASH(sect->rel_start) || !IS_IN_FLASH(sect->rel_end) || !IS_IN_FLASH(sect->data_data))… in handleApp()
436 if (!IS_IN_RAM(sect->data_start) || !IS_IN_RAM(sect->data_end) || !IS_IN_RAM(sect->bss_start) || in handleApp()
[all …]
/device/google/contexthub/firmware/os/cpu/cortexm4/
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->data = 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->data - app->sect.data_start); in cpuAppUnload()
/device/google/contexthub/lib/include/nanohub/
Dnanohub.h123 #define FLASH_RELOC_OFFSET offsetof(struct AppHdr, sect) // used by appSupport.c at run time
124 #define BINARY_RELOC_OFFSET offsetof(struct BinHdr, sect) // used by postprocess at build time
134 struct SectInfo sect; member
141 struct SectInfo sect; member
204 struct SectInfo sect; member
/device/google/contexthub/firmware/build/
Dnanohub_executable.mk89 …PY_FLAGS) $(GLOBAL_NANO_OBJCOPY_FLAGS_$(AUX_CPU)) $(foreach sect,$(LOCAL_OBJCOPY_SECT), -j $(sect))
/device/google/contexthub/firmware/os/core/
Dseos.c1435 *appSize = app->sect.rel_end; in osAppInfoById()
1456 *appSize = app->sect.rel_end; in osAppInfoByIndex()
1477 *appSize = app->sect.rel_end; in osExtAppInfoByIndex()
DnanohubCommand.c1546 … success = copyTLV32(data, &offset, max_len, tags[i], app->sect.got_end - app->sect.data_start); in processAppTags()
1549 … success = copyTLV32(data, &offset, max_len, tags[i], app->sect.bss_end - app->sect.bss_start); in processAppTags()