mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +08:00
arch/arm/src/armv7-m: Add ARMv7-M setjmp/longjump functions.
This commit is contained in:
committed by
Gregory Nutt
parent
ec5120f69e
commit
ced0dc1e16
@@ -425,11 +425,11 @@ config ARCH_STDARG_H
|
||||
bool "stdarg.h"
|
||||
default n
|
||||
---help---
|
||||
There is also a redirecting version of stdarg.h in the source tree
|
||||
as well. It also resides out-of-the-way at include/nuttx/lib/stdarg.h.
|
||||
This is because you should normally use your toolchain's stdarg.h
|
||||
file. But sometimes, your toolchain's stdarg.h file may have other
|
||||
header file dependencies and so may not be usable in the NuttX build
|
||||
There is a redirecting version of stdarg.h in the source tree. It
|
||||
resides out-of-the-way at include/nuttx/lib/stdarg.h. This is
|
||||
because you should normally use your toolchain's stdarg.h file. But
|
||||
sometimes, your toolchain's stdarg.h file may have other header
|
||||
file dependencies and so may not be usable in the NuttX build
|
||||
environment. In those cases, you may have to create a architecture-
|
||||
specific stdarg.h header file at nuttx/arch/<architecture>/include/stdarg.h
|
||||
|
||||
@@ -440,6 +440,30 @@ config ARCH_STDARG_H
|
||||
ARCH_STDARG_H=y and providing. If ARCH_STDARG_H, is not defined, then
|
||||
the stdarg.h header file will stay out-of-the-way in include/nuttx/.
|
||||
|
||||
config ARCH_HAVE_SETJMP
|
||||
bool
|
||||
default n
|
||||
|
||||
config ARCH_SETJMP_H
|
||||
bool "setjmp.h"
|
||||
default n
|
||||
depends on ARCH_HAVE_SETJMP
|
||||
---help---
|
||||
There is a redirecting version of setjmp.h in the source tree. It
|
||||
resides out-of-the-way at include/nuttx/lib/setjmp.h. This is
|
||||
because you should normally use your toolchain's setjmp.h file. But
|
||||
sometimes, your toolchain's setjmp.h file may have other header
|
||||
file dependencies and so may not be usable in the NuttX build
|
||||
environment. In those cases, you may have to create a architecture-
|
||||
specific setjmp.h header file at nuttx/arch/<architecture>/include/setjmp.h
|
||||
|
||||
If ARCH_SETJMP_H=y is defined, the top-level makefile will copy the
|
||||
re-directing setjmp.h header file from include/nuttx/lib/setjmp.h to
|
||||
include/setjmp.h. So for the architectures that cannot use their
|
||||
toolchain's setjmp.h file, they can use this alternative by defining
|
||||
ARCH_SETJMP_H=y and providing. If ARCH_SETJMP_H, is not defined, then
|
||||
the setjmp.h header file will stay out-of-the-way in include/nuttx/.
|
||||
|
||||
config ARCH_DEBUG_H
|
||||
bool "debug.h"
|
||||
default n
|
||||
|
||||
Reference in New Issue
Block a user