Home
last modified time | relevance | path

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

/device/google/contexthub/util/nanoapp_postprocess/
Dpostprocess.c35 #define FLASH_BASE 0x10000000u macro
45 #define IS_IN_FLASH(_val) IS_IN_RANGE(_val, FLASH_BASE, FLASH_SIZE)
321 *addr -= FLASH_BASE + BINARY_RELOC_OFFSET; in fixupAddress()
360 relocOffset -= FLASH_BASE; in fixupReloc()
364 flashDataOffset = app->bin->sect.data_data - FLASH_BASE; in fixupReloc()
443 app.reloc = (struct RelocEntry*)(buf + sect->rel_start - FLASH_BASE); in handleApp()
444 app.symtab = (struct SymtabEntry*)(buf + sect->rel_end - FLASH_BASE); in handleApp()
451 app.codeAndRoDataSize = sect->data_data - FLASH_BASE - sizeof(*bin); in handleApp()
452 app.codeAndDataSize = sect->rel_start - FLASH_BASE - sizeof(*bin); in handleApp()
462 if (app.symtabSize * sizeof(struct SymtabEntry) + sect->rel_end != bufUsed + FLASH_BASE) { in handleApp()
[all …]
Dpostprocess_elf.c37 #define FLASH_BASE 0x10000000 macro
47 #define IS_IN_FLASH(_val) IS_IN_RANGE(_val, FLASH_BASE, FLASH_SIZE)
327 relocs = (struct RelocEntry*)(buf + sect->rel_start - FLASH_BASE); in handleApp()
328 syms = (struct SymtabEntry*)(buf + sect->rel_end - FLASH_BASE); in handleApp()
330 numSyms = (bufUsed + FLASH_BASE - sect->rel_end) / sizeof(struct SymtabEntry); in handleApp()
337 if (numSyms * sizeof(struct SymtabEntry) + sect->rel_end != bufUsed + FLASH_BASE) { in handleApp()
382 else if (IS_IN_RANGE_E(relocs[i].where, FLASH_BASE, FLASH_BASE + sizeof(struct BinHdr))) in handleApp()
390 …if (IS_IN_FLASH(relocs[i].where) && relocs[i].where - FLASH_BASE < sizeof(struct BinHdr) && relocT… in handleApp()
398 valThereP = (uint32_t*)(buf + relocs[i].where - FLASH_BASE); in handleApp()
414 *valThereP -= FLASH_BASE + BINARY_RELOC_OFFSET; in handleApp()
[all …]
/device/google/contexthub/firmware/os/platform/stm32/
Dbl.c180 struct StmFlash *flash = (struct StmFlash *)FLASH_BASE; in _blEraseSectors()
207 struct StmFlash *flash = (struct StmFlash *)FLASH_BASE; in blEraseSectors()
285 struct StmFlash *flash = (struct StmFlash *)FLASH_BASE; in blWriteBytes()
312 struct StmFlash *flash = (struct StmFlash *)FLASH_BASE; in blPlatProgramFlash()
/device/google/contexthub/firmware/os/platform/stm32/inc/plat/
Dpwr.h163 #define FLASH_BASE 0x40023C00UL macro