[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <48c4b1f81c21950e9fd46d4acb5196d979b147cb.camel@xry111.site>
Date: Thu, 16 Feb 2023 15:10:17 +0800
From: Xi Ruoyao <xry111@...111.site>
To: Jinyang He <hejinyang@...ngson.cn>,
Youling Tang <tangyouling@...ngson.cn>,
Huacai Chen <chenhuacai@...nel.org>
Cc: Xuerui Wang <kernel@...0n.name>, loongarch@...ts.linux.dev,
linux-kernel@...r.kernel.org, Xuefeng Li <lixuefeng@...ngson.cn>,
Jianmin lv <lvjianmin@...ngson.cn>,
Tiezhu Yang <yangtiezhu@...ngson.cn>
Subject: Re: [PATCH v4 2/5] LoongArch: Use la.pcrel instead of la.abs for
exception handlers
On Thu, 2023-02-16 at 14:59 +0800, Jinyang He wrote:
> +.macro la.abs reg, sym
> +766:
> + nop
> + nop
> + nop
> + nop
In the "formal" version we can code
lu12i.w reg, 0
ori reg, reg, 0
lu32i.d reg, 0
lu52i.d reg, reg, 0
here. Then we only need to fixup the immediate slot so we can avoid
using parse_r.
> + .pushsection ".laabs", "aw", %progbits
> +768:
> + .word 768b-766b
> + parse_r regno, \reg
> + .word regno
> + .dword \sym
> + .popsection
> +.endm
--
Xi Ruoyao <xry111@...111.site>
School of Aerospace Science and Technology, Xidian University
Powered by blists - more mailing lists