From: Simon Glass Date: Mon, 16 Jan 2017 14:04:21 +0000 (-0700) Subject: x86: Add a dummy setjmp implementation for x86_64 X-Git-Tag: v2017.03-rc2~59 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c780069f1e3ff6a6613a1aaae5668a35164532c7;p=oweals%2Fu-boot.git x86: Add a dummy setjmp implementation for x86_64 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 Reviewed-by: Bin Meng --- diff --git a/arch/x86/cpu/x86_64/Makefile b/arch/x86/cpu/x86_64/Makefile index 4b063862e1..400f0ffe39 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 0000000000..25f8d2804b --- /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, int val) +{ + printf("WARNING: longjmp() is not supported\n"); +}