Lines Matching refs:hdr
74 struct rmodule_header *hdr; in cpu_run_reference_code() local
79 hdr = (struct rmodule_header *)CONFIG_X86_REFCODE_ADDR; in cpu_run_reference_code()
80 debug("Extracting code from rmodule at %p\n", hdr); in cpu_run_reference_code()
81 if (hdr->magic != RMODULE_MAGIC) { in cpu_run_reference_code()
85 if (hdr->module_link_start_address != 0) { in cpu_run_reference_code()
89 if (hdr->module_entry_point != 0) { in cpu_run_reference_code()
99 src = (char *)hdr + hdr->payload_begin_offset; in cpu_run_reference_code()
102 size = hdr->payload_end_offset - hdr->payload_begin_offset; in cpu_run_reference_code()
106 size = hdr->bss_end - hdr->bss_begin; in cpu_run_reference_code()
107 debug("Zeroing BSS at %p, size %x\n", dest + hdr->bss_begin, size); in cpu_run_reference_code()
108 memset(dest + hdr->bss_begin, '\0', size); in cpu_run_reference_code()