Michael Ellerman
2dc0bc1138
powerpc/64e: Fix secondary thread bringup for ELFv2 kernels
...
When booting on e6500 with an ELF v2 ABI kernel, the secondary threads do
not start correctly:
[ 0.051118] smp: Bringing up secondary CPUs ...
[ 5.072700] Processor 1 is stuck.
This occurs because the startup code is written to use function
descriptors when loading the entry point for the secondary threads. When
building with ELF v2 ABI there are no function descriptors, and the code
loads junk values for the entry point address.
Fix it by using ppc_function_entry() in C, and DOTSYM() in asm, both of
which work correctly for ELF v2 ABI as well as ELF v1 ABI kernels.
Fixes: 8c5fa3b5c4df ("powerpc/64: Make ELFv2 the default for big-endian builds")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230801102650.48705-1-mpe@ellerman.id.au
2023-08-01 21:01:27 +10:00
..
2023-06-19 17:36:27 +10:00
2023-06-09 16:25:16 -07:00
2023-07-28 20:23:57 +10:00
2023-07-01 09:24:31 -07:00
2022-09-26 22:47:37 +10:00
2021-12-09 22:41:21 +11:00
2023-04-20 12:59:21 +10:00
2021-10-27 22:30:32 +11:00
2023-03-30 23:36:35 +11:00
2022-05-08 22:15:04 +10:00
2021-10-27 22:30:32 +11:00
2022-11-18 19:00:06 +11:00
2022-11-18 19:00:06 +11:00
2023-06-19 17:36:25 +10:00
2022-09-26 22:47:13 +10:00
2022-09-26 22:47:13 +10:00
2022-09-26 22:47:13 +10:00
2022-09-26 22:47:13 +10:00
2022-09-26 23:00:05 +10:00
2022-09-26 22:47:13 +10:00
2022-09-26 22:47:13 +10:00
2022-09-26 23:00:05 +10:00
2022-09-26 23:00:05 +10:00
2022-09-26 22:47:13 +10:00
2022-05-28 11:27:17 -07:00
2022-06-29 16:45:05 +10:00
2023-01-30 20:07:42 +11:00
2023-05-17 00:54:55 +10:00
2022-04-18 07:21:12 +02:00
2022-08-26 11:02:20 +10:00
2022-03-08 22:06:25 +11:00
2021-12-23 22:33:10 +11:00
2023-02-15 22:41:11 +11:00
2022-05-05 22:12:44 +10:00
2023-06-14 17:58:12 -05:00
2022-05-08 22:15:40 +10:00
2022-05-05 22:12:44 +10:00
2023-06-15 14:03:55 +10:00
2023-02-17 22:07:04 +11:00
2021-12-09 22:41:21 +11:00
2023-07-10 09:47:47 +10:00
2023-04-20 12:54:24 +10:00
2022-05-28 11:27:17 -07:00
2021-10-09 00:15:59 +11:00
2021-12-16 21:31:45 +11:00
2022-12-08 23:57:47 +11:00
2022-12-02 17:54:08 +11:00
2022-12-08 23:57:47 +11:00
2022-12-02 17:54:09 +11:00
2023-08-01 21:01:27 +10:00
2023-01-30 15:59:59 +11:00
2022-12-08 23:57:47 +11:00
2023-04-11 23:13:33 +10:00
2021-12-09 22:41:21 +11:00
2022-11-24 23:31:49 +11:00
2021-12-23 22:35:13 +11:00
2022-09-28 19:22:10 +10:00
2022-09-26 23:00:14 +10:00
2021-10-20 21:37:58 +11:00
2023-03-16 15:18:12 +11:00
2023-04-26 16:20:16 +10:00
2023-06-21 15:13:57 +10:00
2023-06-21 15:13:57 +10:00
2023-04-20 13:21:49 +10:00
2023-04-20 12:59:21 +10:00
2023-05-08 22:57:10 +10:00
2021-06-17 00:09:00 +10:00
2021-08-13 22:04:26 +10:00
2022-12-02 17:54:08 +11:00
2021-10-27 11:21:49 -04:00
2022-12-19 07:13:33 -06:00
2022-09-26 23:00:14 +10:00
2021-12-23 22:35:13 +11:00
2023-06-13 12:27:04 +02:00
2023-06-15 14:04:19 +10:00
2021-12-09 22:41:21 +11:00
2023-02-10 22:17:34 +11:00
2022-12-02 17:54:09 +11:00
2023-04-20 12:54:24 +10:00
2021-08-25 13:35:47 +10:00
2023-03-09 12:55:15 -08:00
2023-04-20 13:21:42 +10:00
2022-05-19 23:11:29 +10:00
2022-05-08 22:15:40 +10:00
2022-12-02 17:54:08 +11:00
2022-11-24 23:31:49 +11:00
2023-04-20 12:59:21 +10:00
2023-02-07 20:15:23 +11:00
2023-03-14 23:36:27 +11:00
2022-09-05 17:30:25 +10:00
2022-05-08 22:15:40 +10:00
2023-04-04 10:43:52 -05:00
2022-05-08 22:15:40 +10:00
2023-06-19 17:37:14 +10:00
2022-05-08 22:15:40 +10:00
2023-06-19 17:36:26 +10:00
2023-06-15 14:04:19 +10:00
2023-03-23 17:18:33 -07:00
2022-09-26 20:58:18 +10:00
2023-06-19 17:36:25 +10:00
2021-08-25 13:35:47 +10:00
2022-09-28 19:22:13 +10:00
2022-08-26 08:41:54 +10:00
2023-02-13 22:35:03 +11:00
2023-02-13 22:35:03 +11:00
2023-02-13 22:35:03 +11:00
2023-02-13 22:35:03 +11:00
2023-03-30 23:36:35 +11:00
2023-02-13 22:35:03 +11:00
2023-07-10 09:47:47 +10:00
2023-02-12 22:12:36 +11:00
2023-02-12 22:12:37 +11:00
2022-09-26 23:00:13 +10:00
2023-04-14 17:31:25 +02:00
2023-03-15 00:52:10 +11:00
2022-09-26 23:00:13 +10:00
2023-06-09 23:29:51 +10:00
2022-07-28 16:22:14 +10:00
2022-05-19 23:11:26 +10:00
2022-10-07 00:59:54 +11:00
2023-06-30 09:20:08 -07:00
2022-12-02 17:54:09 +11:00
2021-10-22 15:22:05 +11:00
2023-06-15 14:03:55 +10:00
2022-11-18 19:00:06 +11:00
2021-10-22 15:22:05 +11:00
2022-09-26 22:47:37 +10:00
2022-09-28 19:22:12 +10:00
2022-11-01 10:24:09 +11:00
2022-09-28 19:22:09 +10:00
2022-09-28 19:22:08 +10:00
2023-03-17 15:29:34 +01:00
2022-10-07 00:59:54 +11:00
2023-05-08 13:52:27 -10:00
2023-03-16 08:56:48 +11:00
2022-12-02 17:54:08 +11:00
2023-07-17 10:35:28 +10:00
2022-09-28 19:22:09 +10:00
2022-09-28 19:22:09 +10:00
2022-05-06 00:00:20 +10:00
2022-02-12 22:47:43 +11:00
2022-02-12 22:47:43 +11:00
2023-01-18 17:12:55 -08:00
2021-12-09 22:41:21 +11:00
2023-04-20 12:59:21 +10:00
2023-04-20 12:59:21 +10:00
2023-06-09 17:44:20 -07:00