mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-07 12:49:24 +00:00
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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
4d3ac6c326
commit
c780069f1e
2 changed files with 21 additions and 1 deletions
|
@ -3,4 +3,4 @@
|
||||||
# Written by Simon Glass <sjg@chromium.org>
|
# Written by Simon Glass <sjg@chromium.org>
|
||||||
#
|
#
|
||||||
|
|
||||||
obj-y += cpu.o interrupts.o
|
obj-y += cpu.o interrupts.o setjmp.o
|
||||||
|
|
20
arch/x86/cpu/x86_64/setjmp.c
Normal file
20
arch/x86/cpu/x86_64/setjmp.c
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2016 Google, Inc
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: GPL-2.0+
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <common.h>
|
||||||
|
#include <asm/setjmp.h>
|
||||||
|
|
||||||
|
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");
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue