From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Tue, 18 Oct 2016 11:02:51 +0800 Subject: [U-Boot] [PATCH v3 1/8] x86: Add implementations of setjmp() and longjmp() In-Reply-To: <1476757754-1220-1-git-send-email-sjg@chromium.org> References: <1476757754-1220-1-git-send-email-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Oct 18, 2016 at 10:29 AM, Simon Glass wrote: > Bring in these functions from Linux v4.4. They will be needed for EFI loader > support. > > Signed-off-by: Simon Glass > --- > > Changes in v3: > - Add a parameter to longjmp() > - Drop unused header files > > Changes in v2: > - Drop irrelevant comment > - Add a comment about .size > - Drop unnecessary .text directive > - Make longjmp() always cause setjmp() to return 1 > > arch/x86/cpu/Makefile | 2 +- > arch/x86/cpu/setjmp.S | 61 +++++++++++++++++++++++++++++++++++++++++++ > arch/x86/include/asm/setjmp.h | 24 +++++++++++++++++ > 3 files changed, 86 insertions(+), 1 deletion(-) > create mode 100644 arch/x86/cpu/setjmp.S > create mode 100644 arch/x86/include/asm/setjmp.h > Reviewed-by: Bin Meng