From mboxrd@z Thu Jan 1 00:00:00 1970 From: jens.wiklander@linaro.org (Jens Wiklander) Date: Tue, 10 Nov 2015 16:25:19 +0100 Subject: [PATCH 2/4] arm: add implementation for arm-smccc In-Reply-To: <20151106122510.GJ6087@arm.com> References: <1446630372-1598-1-git-send-email-jens.wiklander@linaro.org> <1446630372-1598-3-git-send-email-jens.wiklander@linaro.org> <20151104102327.GJ8644@n2100.arm.linux.org.uk> <20151106122510.GJ6087@arm.com> Message-ID: <20151110152518.GA1702@ermac> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Fri, Nov 06, 2015 at 12:25:10PM +0000, Will Deacon wrote: > On Wed, Nov 04, 2015 at 10:23:27AM +0000, Russell King - ARM Linux wrote: > > On Wed, Nov 04, 2015 at 10:46:10AM +0100, Jens Wiklander wrote: > > > + .macro SMCCC instr > > > + mov r12, sp > > > + push {r4-r7} > > > + ldm r12, {r4-r7} > > > + \instr > > > + pop {r4-r7} > > > + ldr r12, [sp, #(4 * 4)] > > > + stm r12, {r0-r3} > > > + bx lr > > > + .endm > > > > Please add unwinding support to this. > > Likewise for the arm64 part (which should be easy with > .cfi_startproc/.cfi_endproc). Thanks for the feedback, I'll send out a v2 with this. -- Jens