From 70a8d1d4656bc678ddada5e56263c9cb4423a623 Mon Sep 17 00:00:00 2001 From: Shell Date: Sat, 21 Oct 2023 20:14:45 +0800 Subject: [kservice] improve backtrace service in kernel (#8144) Signed-off-by: Shell --- include/rtdef.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/rtdef.h') diff --git a/include/rtdef.h b/include/rtdef.h index 13a3c743ad..eb0d66b06c 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -421,6 +421,7 @@ typedef int (*init_fn_t)(void); #define RT_ENOENT ENOENT /**< No entry */ #define RT_ENOSPC ENOSPC /**< No space left */ #define RT_EPERM EPERM /**< Operation not permitted */ +#define RT_EFAULT EFAULT /**< Bad address */ #define RT_ETRAP 254 /**< Trap event */ #else #define RT_EOK 0 /**< There is no error */ @@ -438,6 +439,7 @@ typedef int (*init_fn_t)(void); #define RT_ENOSPC 12 /**< No space left */ #define RT_EPERM 13 /**< Operation not permitted */ #define RT_ETRAP 14 /**< Trap event */ +#define RT_EFAULT 15 /**< Bad address */ #endif /* defined(RT_USING_LIBC) && !RT_USING_LIBC_ISO_ONLY */ /**@}*/ -- cgit v1.3.1