CVSROOT:        /cvs
Module name:    src
Changes by:     v...@cvs.openbsd.org    2021/02/11 07:44:14

Modified files:
        sys/arch/loongson/conf: ld.script 
        sys/arch/loongson/loongson: locore.S 
        sys/arch/mips64/mips64: exception.S 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 locore.S 

Log message:
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@

Reply via email to