From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Sun, 25 Sep 2016 21:34:19 -0600 Subject: [U-Boot] [PATCH 76/82] x86: Add a dummy setjmp implementation for x86_64 In-Reply-To: <1474860866-16406-1-git-send-email-sjg@chromium.org> References: <1474860866-16406-1-git-send-email-sjg@chromium.org> Message-ID: <1474860866-16406-77-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de We don't have the code for this yet. Add a dummy version for now, so that EFI builds correctly. Signed-off-by: Simon Glass --- arch/x86/cpu/x86_64/Makefile | 2 +- arch/x86/cpu/x86_64/setjmp.c | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 arch/x86/cpu/x86_64/setjmp.c diff --git a/arch/x86/cpu/x86_64/Makefile b/arch/x86/cpu/x86_64/Makefile index 4b06386..400f0ff 100644 --- a/arch/x86/cpu/x86_64/Makefile +++ b/arch/x86/cpu/x86_64/Makefile @@ -3,4 +3,4 @@ # Written by Simon Glass # -obj-y += cpu.o interrupts.o +obj-y += cpu.o interrupts.o setjmp.o diff --git a/arch/x86/cpu/x86_64/setjmp.c b/arch/x86/cpu/x86_64/setjmp.c new file mode 100644 index 0000000..5321292 --- /dev/null +++ b/arch/x86/cpu/x86_64/setjmp.c @@ -0,0 +1,20 @@ +/* + * Copyright (c) 2016 Google, Inc + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include +#include + +int setjmp(struct jmp_buf_data *jmp_buf) +{ + printf("WARNING: setjmp() is not supported\n"); + + return 0; +} + +void longjmp(struct jmp_buf_data *jmp_buf) +{ + printf("WARNING: longjmp() is not supported\n"); +} -- 2.8.0.rc3.226.g39d4020