Lines Matching +full:ns +full:- +full:firmware
1 // SPDX-License-Identifier: GPL-2.0-or-later
25 0xffffffff, /* real-mode = true */
26 0x02000000, /* real-base, i.e. where we expect OF to be */
27 0xffffffff, /* real-size */
28 0xffffffff, /* virt-base */
29 0xffffffff, /* virt-size */
30 0x4000, /* load-base */
34 static const char rpaname[] = "IBM,RPA-Client-Config";
38 * all the other fields, but there is a firmware bug which means that
49 -1, /* min_load */
119 long nnote, nnote2, ns; in main() local
122 fprintf(stderr, "Usage: %s elf-file\n", av[0]); in main()
174 ns = ph + 2 * ps; in main()
177 PUT_32(ph + PH_OFFSET, ns); in main()
179 PUT_64(ph + PH_OFFSET, ns); in main()
188 PUT_32(ns, strlen(arch) + 1); in main()
189 PUT_32(ns + 4, N_DESCR * 4); in main()
190 PUT_32(ns + 8, 0x1275); in main()
191 strcpy((char *) &buf[ns + 12], arch); in main()
192 ns += 12 + strlen(arch) + 1; in main()
193 for (i = 0; i < N_DESCR; ++i, ns += 4) in main()
194 PUT_32BE(ns, descr[i]); in main()
200 PUT_32(ph + PH_OFFSET, ns); in main()
202 PUT_64(ph + PH_OFFSET, ns); in main()
210 PUT_32(ns, strlen(rpaname) + 1); in main()
211 PUT_32(ns + 4, sizeof(rpanote)); in main()
212 PUT_32(ns + 8, 0x12759999); in main()
213 strcpy((char *) &buf[ns + 12], rpaname); in main()
214 ns += 12 + ROUNDUP(strlen(rpaname) + 1); in main()
215 for (i = 0; i < N_RPA_DESCR; ++i, ns += 4) in main()
216 PUT_32BE(ns, rpanote[i]); in main()