From mboxrd@z Thu Jan 1 00:00:00 1970 From: will.deacon@arm.com (Will Deacon) Date: Fri, 6 Nov 2015 12:25:10 +0000 Subject: [PATCH 2/4] arm: add implementation for arm-smccc In-Reply-To: <20151104102327.GJ8644@n2100.arm.linux.org.uk> 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> Message-ID: <20151106122510.GJ6087@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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). Will