Searched refs:patch (Results 1 - 4 of 4) sorted by relevance

/fuchsia/zircon/kernel/lib/code_patching/
H A Dcode_patching.cpp15 for (const CodePatchInfo* patch = __start_code_patch_table;
16 patch < __stop_code_patch_table; ++patch) {
17 patch->apply_func(patch);
18 arch_sync_cache_range((addr_t)patch->dest_addr, patch->dest_size);
/fuchsia/zircon/kernel/lib/libc/string/arch/x86/
H A Dselector.cpp22 void x86_memcpy_select(const CodePatchInfo* patch) { argument
29 DEBUG_ASSERT(patch->dest_size == kSize);
30 DEBUG_ASSERT(reinterpret_cast<uintptr_t>(patch->dest_addr) ==
40 patch->dest_addr[0] = 0xeb; /* jmp rel8 */
41 patch->dest_addr[1] = static_cast<uint8_t>(offset);
44 void x86_memset_select(const CodePatchInfo* patch) { argument
51 DEBUG_ASSERT(patch->dest_size == kSize);
52 DEBUG_ASSERT(reinterpret_cast<uintptr_t>(patch->dest_addr) ==
62 patch->dest_addr[0] = 0xeb; /* jmp rel8 */
63 patch
[all...]
/fuchsia/zircon/kernel/arch/x86/
H A Duser_copy.cpp28 void fill_out_stac_instruction(const CodePatchInfo* patch) { argument
30 DEBUG_ASSERT(patch->dest_size == kSize);
33 memcpy(patch->dest_addr, kStacInstruction, kSize);
35 memset(patch->dest_addr, kNopInstruction, kSize);
39 void fill_out_clac_instruction(const CodePatchInfo* patch) { argument
41 DEBUG_ASSERT(patch->dest_size == kSize);
44 memcpy(patch->dest_addr, kClacInstruction, kSize);
46 memset(patch->dest_addr, kNopInstruction, kSize);
/fuchsia/zircon/kernel/lib/code_patching/include/lib/
H A Dcode_patching.h33 /* it before applying the patch. */ \
42 void (*apply_func)(const CodePatchInfo* patch);
43 uint8_t* dest_addr; // Destination code address to patch.

Completed in 29 milliseconds