]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: Add a setjmp() implementation
authorSimon Glass <sjg@chromium.org>
Wed, 16 May 2018 15:42:22 +0000 (09:42 -0600)
committerAlexander Graf <agraf@suse.de>
Sun, 3 Jun 2018 13:27:21 +0000 (15:27 +0200)
commit30eef21fa041635fb8327ef9001d78cb187c359f
tree0945455a7afbc64b4636329b50ac62d58db979cb
parent0864c565a274ddbc23dda667d71524e7efbbef8f
sandbox: Add a setjmp() implementation

Add an implementation of setjmp() and longjmp() which rely on the
underlying host C library. Since we cannot know how large the jump buffer
needs to be, pick something that should be suitable and check it at
runtime. At present we need access to the underlying struct as well.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/sandbox/cpu/cpu.c
arch/sandbox/cpu/os.c
arch/sandbox/include/asm/setjmp.h [new file with mode: 0644]
include/os.h