freebsd-skq/sys
Brandon Bergren bad9fa5662 [PowerPC] Fix AP bringup on 32-bit AIM SMP
In r361544, the pmap drivers were converted to ifuncs. When doing so,
this changed the call type of pmap functions to be called via the
secure-plt stubs.

These stubs depend on the TOC base being loaded to r30 to run properly.

On SMP AIM (i.e. a dual processor G4 or running 32-bit on G5), since the
APs were being started up from the reset vector instead of going
through __start, they had never had r30 initialized properly, so when the
cpu_reset code in trap_subr32.S attempted to branch to
pmap_cpu_bootstrap(), it was loading the target from the wrong location.

Ensure r30 is set up directly in the cpu_reset trap code, so we can make
PLT calls as normal.

Fixes boot on my SMP G4.

Reviewed by:	jhibbits
MFC after:	3 days
Sponsored by:	Tag1 Consulting, Inc.
2021-03-06 15:46:28 -06:00
..
amd64 Only set delayed inval for procs using PTI 2021-03-05 13:20:08 -06:00
arm arm64: Add support for bcm2838 RNG 2021-03-06 12:28:35 +01:00
arm64 sys/arm64/arm64/vfp.c: Fix -Wunused and -Wpointer-sign warnings 2021-03-04 18:25:44 +00:00
bsm Add aio_writev and aio_readv 2021-01-02 19:57:58 -07:00
cam Do not exit ctl_be_block_worker() prematurely. 2021-03-05 22:45:47 -05:00
cddl Handle functions that use a nop in the arm64 fbt 2021-03-03 14:18:03 +00:00
compat linux: add support for SO_PEERGROUPS 2021-03-06 19:48:58 +00:00
conf ice(4): Update to version 0.28.1-k 2021-03-05 17:33:39 -08:00
contrib zfs: merge OpenZFS master-bedbc13da 2021-03-03 02:15:33 +01:00
crypto ossl: Add support for the ChaCha20 + Poly1305 AEAD cipher from RFC 8439 2021-03-03 15:20:57 -08:00
ddb ddb: just move cursor when the lexer backs up 2021-02-24 15:56:16 -08:00
dev ice(4): Update to version 0.28.1-k 2021-03-05 17:33:39 -08:00
dts Remove DTS files for arm boards we don't support 2021-01-27 10:02:01 +00:00
fs nfsclient: Fix ReadDS/WriteDS/CommitDS nfsstats RPC counts for a NFSv3 DS 2021-03-02 14:18:23 -08:00
gdb Use atomic loads/stores when updating td->td_state 2021-02-18 14:02:48 +00:00
geom opencrypto: Introduce crypto_dispatch_async() 2021-02-08 09:19:19 -05:00
gnu Remove the old dts imported tree. 2021-01-15 20:09:55 +01:00
i386 acpi: Make nexus_acpi quiet on amd64 and i386 2021-03-05 12:54:00 -05:00
isa
kern Implement mallocarray_domainset(9) variant of mallocarray(9). 2021-03-06 11:38:55 +01:00
kgssapi opencrypto: Introduce crypto_dispatch_async() 2021-02-08 09:19:19 -05:00
libkern Restore the augmented strlen commentary 2021-02-08 19:15:21 +00:00
mips [ar71xx] Fix routerstation / routerstation pro redboot FIS probing 2021-02-25 13:14:55 -08:00
modules ice(4): Update to version 0.28.1-k 2021-03-05 17:33:39 -08:00
net net: fixing a memory leak in if_deregister_com_alloc() 2021-03-06 14:43:16 +00:00
net80211 net80211: rx_stats add 160Mhz channel width. 2021-02-28 19:24:22 +00:00
netgraph netgraph/ng_bridge: Add counters for the first link, too 2021-02-10 19:05:37 +01:00
netinet tcp: Add prr_out in preparation for PRR/nonSACK and LRD 2021-03-06 00:38:22 +01:00
netinet6 net: Introduce IPV6_DSCP(), IPV6_ECN() and IPV6_TRAFFIC_CLASS() macros 2021-03-04 20:56:48 +01:00
netipsec Revert "SO_RERROR indicates that receive buffer overflows should be handled as errors." 2021-02-08 22:32:32 +00:00
netpfil net: Introduce IPV6_DSCP(), IPV6_ECN() and IPV6_TRAFFIC_CLASS() macros 2021-03-04 20:56:48 +01:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed ofed: quiet gcc -Wint-in-bool-context 2021-02-24 15:56:16 -08:00
opencrypto opencrypto: Make cryptosoft attach silently 2021-03-05 13:11:25 -05:00
powerpc [PowerPC] Fix AP bringup on 32-bit AIM SMP 2021-03-06 15:46:28 -06:00
riscv riscv: fix errors in some atomic type aliases 2021-03-04 16:59:58 -04:00
rpc nfs-over-tls: handle res.gid.gid_val correctly for memory allocation 2021-01-12 13:59:52 -08:00
security Add a comment on why the call to mac_vnode_relabel() might be in the wrong 2021-02-27 16:25:26 +00:00
sys Implement mallocarray_domainset(9) variant of mallocarray(9). 2021-03-06 11:38:55 +01:00
teken loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
tests Enable running fib tests inside vnet jail. 2021-01-17 20:32:26 +00:00
tools syscalls.master: Add a new syscall type: RESERVED 2021-01-26 18:27:44 +00:00
ufs FFS extattr: fix handling of the tail 2021-03-02 02:19:34 +02:00
vm vm: Round up npages and alignment for contig reclamation 2021-03-02 10:21:02 -05:00
x86 smbios: Move smbios driver out from x86 machdep code 2021-02-23 21:17:09 +00:00
xdr
xen xen: remove .swp file from public headers 2021-01-11 18:14:11 +01:00
Makefile