.text : { *(.text .text.* .gnu.linkonce.t.*) }
PROVIDE (etext = .);
.rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
- _gp = ALIGN(16) + 0x7ff0;
.data : { *(.data .data.* .gnu.linkonce.d.*) }
.openbsd.randomdata :
{
-/* $OpenBSD: locore.S,v 1.8 2017/06/08 11:44:00 visa Exp $ */
+/* $OpenBSD: locore.S,v 1.9 2021/02/11 14:44:13 visa Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
* Initialize stack and call machine startup.
*/
LA t0, start - FRAMESZ(CF_SZ)
- LA gp, _gp
PTR_S ra, CF_RA_OFFS(t0) # save pmon return address
PTR_S sp, 0(t0) # and stack
move sp, t0
LA t0, cpu_spinup_sp
ld sp, 0(t0)
jal hw_cpu_hatch
- LA gp, _gp
+ nop
END(hw_cpu_spinup_trampoline)
LEAF(hw_getcurcpu, 0)
-/* $OpenBSD: exception.S,v 1.40 2019/05/06 12:54:51 visa Exp $ */
+/* $OpenBSD: exception.S,v 1.41 2021/02/11 14:44:13 visa Exp $ */
/*
* Copyright (c) 2002-2003 Opsycon AB (www.opsycon.se / www.opsycon.com)
#endif
.set at
move sp, k0 # Already on kernel stack
- LA gp, _gp
and t0, a1, ~(SR_COP_1_BIT | SR_EXL | SR_INT_ENAB | SR_KSU_MASK)
MTC0 t0, COP_0_STATUS_REG
MTC0_SR_IE_HAZARD
SAVE_REG(v1, IC, k0, 0)
#endif
PTR_ADDU sp, k0, USPACE-FRAMESZ(CF_SZ)
- LA gp, _gp
.set at
and t0, a1, ~(SR_COP_1_BIT | SR_EXL | SR_INT_ENAB | SR_KSU_MASK)
MTC0 t0, COP_0_STATUS_REG
#endif
.set at
move sp, k0 # Already on kernel stack
- LA gp, _gp
and t0, a1, ~(SR_COP_1_BIT | SR_EXL | SR_INT_ENAB | SR_KSU_MASK)
MTC0 t0, COP_0_STATUS_REG
MTC0_SR_IE_HAZARD
#endif
SAVE_CPU_SREG(k0, 0)
PTR_ADDU sp, k0, USPACE-FRAMESZ(CF_SZ)
- LA gp, _gp
.set at
and t0, a1, ~(SR_COP_1_BIT | SR_EXL | SR_INT_ENAB | SR_KSU_MASK)
MTC0 t0, COP_0_STATUS_REG
-/* $OpenBSD: exception_tfp.S,v 1.7 2018/05/09 15:03:04 visa Exp $ */
+/* $OpenBSD: exception_tfp.S,v 1.8 2021/02/11 14:44:13 visa Exp $ */
/*
* Copyright (c) 2012 Miodrag Vallat.
SAVE_CPU(k0, 0)
SAVE_CPU_SREG(k0, 0)
PTR_ADDU sp, k0, USPACE-FRAMESZ(CF_SZ)
- LA gp, _gp
.set at
and t0, a1, ~(SR_COP_1_BIT | SR_EXL | SR_INT_ENAB | SR_KSU_MASK)
DMTC0 t0, COP_0_STATUS_REG
#endif
.set at
move sp, k0 # Already on kernel stack
- LA gp, _gp
and t0, a1, ~(SR_COP_1_BIT | SR_EXL | SR_INT_ENAB | SR_KSU_MASK)
DMTC0 t0, COP_0_STATUS_REG
MTC0_SR_IE_HAZARD
-/* $OpenBSD: ld.script,v 1.6 2021/02/06 09:31:47 visa Exp $ */
+/* $OpenBSD: ld.script,v 1.7 2021/02/11 14:44:13 visa Exp $ */
OUTPUT_FORMAT("elf64-tradbigmips")
OUTPUT_ARCH(mips)
. = ALIGN(8);
PROVIDE (__kernel_randomdata_end = .);
- _gp = ALIGN(16) + 0x7ff0;
.data :
{
*(.data .data.* .gnu.linkonce.d.*)
-/* $OpenBSD: locore.S,v 1.21 2020/07/11 15:18:08 visa Exp $ */
+/* $OpenBSD: locore.S,v 1.22 2021/02/11 14:44:14 visa Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
mtc0 zero, COP_0_CAUSE_REG # Clear soft interrupts
- LA gp, _gp
-
/* Let the init core continue. The others have to wait. */
bne a2, zero, 2f
nop
.text : { *(.text .text.* .gnu.linkonce.t.*) }
PROVIDE (etext = .);
.rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
- _gp = ALIGN(16) + 0x7ff0;
.data : { *(.data .data.* .gnu.linkonce.d.*) }
.openbsd.randomdata :
{
-/* $OpenBSD: ip30_nmi.S,v 1.6 2012/10/03 11:18:23 miod Exp $ */
+/* $OpenBSD: ip30_nmi.S,v 1.7 2021/02/11 14:44:14 visa Exp $ */
/*
* Copyright (c) 2010 Miodrag Vallat.
.set at
PTR_ADDU sp, k0, 0x2000
- LA gp, _gp
/*
* Interrupts should be disabled. Just in case they aren't,
-/* $OpenBSD: locore.S,v 1.19 2019/06/30 07:37:47 visa Exp $ */
+/* $OpenBSD: locore.S,v 1.20 2021/02/11 14:44:14 visa Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
* Initialize stack and call machine startup.
*/
LA sp, start - FRAMESZ(CF_SZ)
- LA gp, _gp
jal mips_init # mips_init(argc, argv, envp)
PTR_S zero, CF_RA_OFFS(sp) # Zero out old ra for debugger
ori v0, SR_KX | SR_UX
MTC0 v0, COP_0_STATUS_REG # disable all interrupts
MTC0 zero, COP_0_CAUSE_REG # Clear soft interrupts
- LA gp, _gp
jal hw_cpu_hatch
NOP
END(hw_cpu_spinup_trampoline)
and v0, v1
MTC0 v0, COP_0_STATUS_REG # Disable all interrupts.
MTC0 zero, COP_0_CAUSE_REG # Clear soft interrupts.
- LA gp, _gp
/* Wait the turn of this CPU. */
LA v1, ip27_spinup_turn