]> git.baikalelectronics.ru Git - uboot.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)
commit1adc368ff59d623b641cf255ca0531c98ba067d9
tree0945455a7afbc64b4636329b50ac62d58db979cb
parentfeab28fdfd1261f746fc916d4a54d39dc343990b
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