diff options
| author | bernard <[email protected]> | 2017-10-15 22:31:53 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2017-10-15 22:31:53 +0800 |
| commit | b27c7e482648535760e012cd6f1afef1d800e2d2 (patch) | |
| tree | ad040fd4e7579e67ba6ee2edae468b63f2099a0e /src/kservice.c | |
| parent | cd215b25455bf06dfeb8885fe4d8f5b30174a8c3 (diff) | |
[Kernel] Add signal implementation.
1. Add signal implementation;
2. Change the 'rt_uint8_t' of cmd to 'int';
Diffstat (limited to 'src/kservice.c')
| -rw-r--r-- | src/kservice.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/kservice.c b/src/kservice.c index 4ffccaf341..4afea50bca 100644 --- a/src/kservice.c +++ b/src/kservice.c @@ -1114,6 +1114,8 @@ RTM_EXPORT(rt_hw_console_output); */ void rt_kputs(const char *str) { + if (!str) return; + #ifdef RT_USING_DEVICE if (_console_device == RT_NULL) { @@ -1265,7 +1267,7 @@ const rt_uint8_t __lowest_bit_bitmap[] = * @return return the index of the first bit set. If value is 0, then this function * shall return 0. */ -rt_ubase_t __rt_ffs(rt_ubase_t value) +int __rt_ffs(int value) { if (value == 0) return 0; |
