MCPcopy Create free account
hub / github.com/F-Stack/f-stack / fiq_installhandler

Function fiq_installhandler

freebsd/arm/arm/fiq.c:73–80  ·  view source on GitHub ↗

* fiq_installhandler: * * Actually install the FIQ handler down at the FIQ vector. * * The FIQ vector is fixed by the hardware definition as the * seventh 32-bit word in the vector page. * * Note: If the FIQ is invoked via an extra layer of * indirection, the actual FIQ code store lives in the * data segment, so there is no need to manipulate * the vector page's protection. */

Source from the content-addressed store, hash-verified

71 * the vector page's protection.
72 */
73static void
74fiq_installhandler(void *func, size_t size)
75{
76 const uint32_t fiqvector = 7 * sizeof(uint32_t);
77
78 memcpy((void *)(vector_page + fiqvector), func, size);
79 icache_sync((vm_offset_t) fiqvector, size);
80}
81
82/*
83 * fiq_claim:

Callers 2

fiq_claimFunction · 0.85
fiq_releaseFunction · 0.85

Calls 2

icache_syncFunction · 0.85
memcpyFunction · 0.50

Tested by

no test coverage detected