Home
last modified time | relevance | path

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

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

Completed in 9 milliseconds