Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
31 lines
441 B
ArmAsm
31 lines
441 B
ArmAsm
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* arch/alpha/lib/dbg_current.S
|
|
* Contributed by Richard Henderson (rth@cygnus.com)
|
|
*
|
|
* Trap if we find current not correct.
|
|
*/
|
|
|
|
#include <asm/pal.h>
|
|
|
|
.text
|
|
.set noat
|
|
|
|
.globl _mcount
|
|
.ent _mcount
|
|
_mcount:
|
|
.frame $30, 0, $28, 0
|
|
.prologue 0
|
|
|
|
lda $0, -0x4000($30)
|
|
cmpult $8, $30, $1
|
|
cmpule $0, $30, $2
|
|
and $1, $2, $3
|
|
bne $3, 1f
|
|
|
|
call_pal PAL_bugchk
|
|
|
|
1: ret $31, ($28), 1
|
|
|
|
.end _mcount
|