Skip to content

Commit e99448c

Browse files
authored
Merge pull request #4588 from mysterywolf/kservice
add "kservice optimization" option
2 parents be7803e + e65b2a1 commit e99448c

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,18 @@ config RT_TIMER_THREAD_STACK_SIZE
116116

117117
endif
118118

119+
menu "kservice optimization"
120+
119121
config RT_KSERVICE_USING_STDLIB
120122
bool "Enable kservice to use standard C library"
121123
default n
122124

125+
config RT_KSERVICE_USING_TINY_SIZE
126+
bool "Enable kservice to use tiny size"
127+
default n
128+
129+
endmenu
130+
123131
menuconfig RT_DEBUG
124132
bool "Enable debugging features"
125133
default y

src/kservice.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ RTM_EXPORT(_rt_errno);
126126
*/
127127
RT_WEAK void *rt_memset(void *s, int c, rt_ubase_t count)
128128
{
129-
#ifdef RT_USING_TINY_SIZE
129+
#ifdef RT_KSERVICE_USING_TINY_SIZE
130130
char *xs = (char *)s;
131131

132132
while (count--)
@@ -210,7 +210,7 @@ RTM_EXPORT(rt_memset);
210210
*/
211211
RT_WEAK void *rt_memcpy(void *dst, const void *src, rt_ubase_t count)
212212
{
213-
#ifdef RT_USING_TINY_SIZE
213+
#ifdef RT_KSERVICE_USING_TINY_SIZE
214214
char *tmp = (char *)dst, *s = (char *)src;
215215
rt_ubase_t len;
216216

0 commit comments

Comments
 (0)