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