Lines Matching +full:integer +full:- +full:n

1 // SPDX-License-Identifier: GPL-2.0+
7 * Relocation data, found in the .rel section, is generated by the mips-relocs
8 * tool & contains a record of all locations in the U-Boot binary that need to
15 * integer are found in the first byte - ie. it somewhat resembles little
19 * first integer represents the type of relocation as a standard ELF relocation
20 * type (ie. R_MIPS_*). The second integer represents the offset at which to
34 * read_uint() - Read an unsigned integer from the buffer
37 * Read one whole unsigned integer from the relocation data pointed to by @buf,
38 * advancing @buf past the bytes encoding the integer.
40 * Returns: the integer read from @buf
58 * apply_reloc() - Apply a single relocation
61 * @off: the relocation offset, ie. number of bytes we're moving U-Boot by
65 * relocated U-Boot - in particular, it does not check for overflows.
92 panic("Unhandled reloc type %u\n", type); in apply_reloc()
97 * relocate_code() - Relocate U-Boot, generally from flash to DDR
102 * Relocate U-Boot from its current location (generally in flash) to a new one
103 * (generally in DDR). This function will copy the U-Boot binary & apply
105 * U-Boot. As such, this function does not return.
118 * space in the U-Boot binary & complexity in handling them. in relocate_code()
120 off = relocaddr - (unsigned long)__text_start; in relocate_code()
122 panic("Mis-aligned relocation\n"); in relocate_code()
124 /* Copy U-Boot to RAM */ in relocate_code()
125 length = __image_copy_end - __text_start; in relocate_code()
145 bss_len = (unsigned long)&__bss_end - (unsigned long)__bss_start; in relocate_code()
148 /* Jump to the relocated U-Boot */ in relocate_code()
150 "move $29, %0\n" in relocate_code()
151 " move $4, %1\n" in relocate_code()
152 " move $5, %2\n" in relocate_code()
153 " move $31, $0\n" in relocate_code()
161 /* Since we jumped to the new U-Boot above, we won't get here */ in relocate_code()