Searched refs:patch (Results 1 – 4 of 4) sorted by relevance
15 for (const CodePatchInfo* patch = __start_code_patch_table; in apply_startup_code_patches() local16 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()
22 void x86_memcpy_select(const CodePatchInfo* patch) { in x86_memcpy_select() argument29 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() argument51 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()
28 void fill_out_stac_instruction(const CodePatchInfo* patch) { in fill_out_stac_instruction() argument30 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() argument41 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()
42 void (*apply_func)(const CodePatchInfo* patch);
Completed in 9 milliseconds