Home
last modified time | relevance | path

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

/openbmc/linux/arch/loongarch/kernel/
H A Drelocate.c150 static inline int __init relocation_addr_valid(void *location_new) in relocation_addr_valid() argument
152 if ((unsigned long)location_new & 0x00000ffff) in relocation_addr_valid()
155 if ((unsigned long)location_new < (unsigned long)_end) in relocation_addr_valid()
173 void *location_new = _text; /* Default to original kernel start */ in relocate_kernel() local
179 location_new = determine_relocation_address(); in relocate_kernel()
182 if (relocation_addr_valid(location_new)) in relocate_kernel()
183 random_offset = (unsigned long)location_new - (unsigned long)(_text); in relocate_kernel()
192 memcpy(location_new, _text, kernel_length); in relocate_kernel()