Leave out gp initialization from kernel entry on mips64
authorvisa <visa@openbsd.org>
Thu, 11 Feb 2021 14:44:13 +0000 (14:44 +0000)
committervisa <visa@openbsd.org>
Thu, 11 Feb 2021 14:44:13 +0000 (14:44 +0000)
commit5b34c8b171a4ddaff75b436d37df77a3c2241a24
tree2f92b41ba021e33ba5acdbcf06be1a4d842e0ee3
parent7af3a068bd974c6237a45ac348e674660981232b
Leave out gp initialization from kernel entry on mips64

On OpenBSD/mips64, the kernel is compiled with -mno-abicalls. This
disables gp-relative addressing and essentially makes gp a spare
register in the kernel. Hence it is unnecessary to initialize gp when
entering the kernel. The _gp symbol is not needed either.

Suggested by miod@
sys/arch/loongson/conf/ld.script
sys/arch/loongson/loongson/locore.S
sys/arch/mips64/mips64/exception.S
sys/arch/mips64/mips64/exception_tfp.S
sys/arch/octeon/conf/ld.script
sys/arch/octeon/octeon/locore.S
sys/arch/sgi/conf/ld.script
sys/arch/sgi/sgi/ip30_nmi.S
sys/arch/sgi/sgi/locore.S