Grissiom
a78e42a7c8
[mempool] reset the thread->error before suspending thread
...
Time out result and other errors is recorded in thread->error. Dirty
error will screw up the error handling code after the thread has been
wake up.
2014-04-16 10:59:33 +08:00
Bernard Xiong
3b6198275b
Merge pull request #263 from grissiom/fix-taihu
...
[bsp/taihu] fix the link error
2014-04-15 07:10:26 +08:00
Grissiom
ab4d18a137
[bsp/taihu] fix the link error
...
The taihu.lds hardcoded the path of start_gcc.o. Change it as the layout
of build/ has change by commit a03816ef9a
.
2014-04-14 18:01:50 +08:00
Bernard Xiong
3022725f53
Merge pull request #262 from grissiom/misc-fix
...
Misc fix
2014-04-13 08:35:09 +08:00
Grissiom
5ad58a59a4
minilibc: no double braces in if statement
2014-04-12 16:58:17 +08:00
Grissiom
a95370aa56
msh: remove usless ptr set
...
The ptr is set in the following code. So remove the first one.
2014-04-12 16:57:14 +08:00
Grissiom
ec4b865579
finsh: add check on converting octal numbers
...
The digit in octal numbers should with in 0~7. Check on it in
token_proc_number. This issue is found by Clang.
2014-04-12 16:55:00 +08:00
Grissiom
1422569e7c
pthreads: remove some useless variables
2014-04-12 16:54:20 +08:00
Grissiom
4b7e9c6447
dfs: assert the path is not null in dfs_filesystem_lookup
...
Clang complains about "Null pointer argument in call to string
comparison function". So assert on it.
2014-04-12 16:35:07 +08:00
Grissiom
1b878f256f
examples/kernel: fix warnings issued by Clang
...
Fix some "unused variable" and "used before set" warnings.
2014-04-12 16:33:35 +08:00
Bernard Xiong
0c4ac4bd1a
Merge pull request #259 from grissiom/fix-scons
...
Fix scons
2014-04-11 17:04:06 +08:00
Bernard Xiong
279f2cb948
Merge pull request #260 from grissiom/logtrace-next
...
Logtrace next
2014-04-10 21:58:06 +08:00
Grissiom
299cccfb26
logtrace: add log_session_lvl
...
log_session_lvl is suitable for performance critical places where in
most cases, the log is turned off by level. If the session is const and
the level is greater than session->lvl, the whole function will be
optimized out.
2014-04-10 21:22:39 +08:00
Grissiom
12728bcdff
logtrace: add const modifier to the APIs
...
Compiler may do more optimization when the parameter is const.
2014-04-10 21:22:39 +08:00
Bernard Xiong
abcef00c8e
Merge pull request #254 from weety/Branch_usb
...
[USB]fix rt_usbd_set_config() BUG which set the USB device to configurat...
2014-04-10 16:34:32 +08:00
Grissiom
81b284b316
scons: no need to set RTT_ROOT as Repository
...
In SCons manual:
=================
In order to inform the C compiler about the repositories, SCons will
add appropriate -I flags to the compilation commands for each directory
in the $CPPPATH list. So if we add the current directory to the
construction environment $CPPPATH like so:
env = Environment(CPPPATH = ['.'])
env.Program('hello.c')
Repository('/usr/repository1')
Then re-executing SCons yields:
% scons -Q
cc -o hello.o -c -I. -I/usr/repository1 hello.c
cc -o hello hello.o
=================
The additional include directory is definitely not what we want. Just
remove the additional Repository line.
2014-04-10 15:09:20 +08:00
Grissiom
a03816ef9a
scons: seperate the BSP build with the kernel build
...
BSPs could have their own components/ etc. If they point to the same
folder, SCons would find the wrong source code to compile.
2014-04-10 15:03:11 +08:00
Bernard Xiong
f91f22b31f
Merge pull request #258 from aozima/pulls
...
update MSH ifconfig and add MSH netstat.
2014-04-09 16:08:25 +08:00
aozima
f61773305a
MSH: add cmd netstat.
2014-04-09 13:17:21 +08:00
aozima
4fada1a13a
MSH: perfect cmd ifconfig.
2014-04-09 13:16:55 +08:00
Bernard Xiong
8de052915f
Merge pull request #257 from grissiom/fix-shell
...
[shell] define FINSH_PROMPT as finsh_get_prompt when FINSH_USING_MSH enabled
2014-04-08 15:42:25 +08:00
Grissiom
841898abe2
[shell] define FINSH_PROMPT as finsh_get_prompt when FINSH_USING_MSH enabled
...
When MSH enabled, the prompt will change at the two shells. So we should
use dynamic prompt when FINSH_USING_MSH defined.
2014-04-08 15:12:44 +08:00
Bernard Xiong
f4c732ae91
Merge pull request #256 from grissiom/qemu-realview-vmm
...
Qemu realview vmm
2014-04-08 12:43:16 +08:00
Grissiom
2b7be29cad
[bsp/rva8] enable group{0,1} interrupt forwarding in gic initialization
...
When RT-Thread is running stand alone, it forgot to enable the
distributor of GIC.
2014-04-08 11:54:03 +08:00
Grissiom
c0f0c2322f
[libcpu/arm] remove useless cpsr updating in rt_hw_context_switch_to
...
This piece of code will enable the interrupt early before switching to
the first thread. Although it is harmless, but not prefect.
2014-04-08 11:24:04 +08:00
Bernard Xiong
dfad3466a0
Merge pull request #255 from grissiom/qemu-realview-vmm
...
Qemu realview vmm
2014-04-07 21:02:17 +08:00
Grissiom
7d7390a188
[bsp/rva8] add mission header in rtt_api.h
2014-04-07 11:57:28 +08:00
Grissiom
430f85df7c
[bsp/rva8] make sure $BUILD_ROOT_DIR/output/target/vmm is a folder
2014-04-07 11:35:22 +08:00
Grissiom
023a0423ba
[bsp/rva8] cleanup drivers/SConscript
2014-04-07 11:18:58 +08:00
weety
d5b0c94552
[USB]fix rt_usbd_set_config() BUG which set the USB device to configuration state before enumerating the device.
2014-04-06 21:02:23 +08:00
Bernard Xiong
16eb9bbed5
Merge pull request #253 from grissiom/qemu-realview-vmm
...
[vmm] add realview-pb-a8 VMM support
2014-04-03 18:07:17 +08:00
Grissiom
28f11fdd7b
[vmm] add realview-pb-a8 VMM support
2014-04-03 17:59:14 +08:00
bernard
8bd3e6f6dc
[Kernel] Change command line to const parameter and add system() function.
2014-04-02 14:05:15 +08:00
bernard
6469a5a3d1
[DFS] fix compiling warning.
2014-04-02 14:02:36 +08:00
Bernard Xiong
40b7eba446
[Kernel] Change the version number to 2.0.0.
2014-03-29 14:59:02 +08:00
Bernard Xiong
a82ad3e380
Merge pull request #250 from grissiom/msh-next
...
[msh] don't complain on empty command
2014-03-29 14:50:04 +08:00
Grissiom
0979328fb1
[msh] don't complain on empty command
...
Just branch out and no complain on command length == 0;
2014-03-29 11:33:20 +08:00
bernard
7d2b7199d8
Add PNG_ABORT for libpng; Add format field in tjpgd;
2014-03-29 08:45:26 +08:00
Bernard Xiong
96d9fd8715
Merge pull request #249 from grissiom/msh-next
...
Msh next
2014-03-27 22:49:43 +08:00
Grissiom
c44f32e513
[msh] cd to path when possible
...
When DFS_USING_WORKDIR is enabled, msh will try to chdir if the command
is not found. For example, if there is folder named "SD", and there is
no `SD` command and `SD.mo` module, typing "SD" in msh will cd to the
folder.
In more detail, the execution order right now is:
1. built-in command
2. module
3. cd to path
If you have a folder named "ps", you have to run `cd ps` to change the
working dir.
2014-03-27 16:41:26 +08:00
Grissiom
f9659283c0
[msh] try to complete module path
...
Msh can execute module directly. So try to auto-complete the path when
user press TAB. There is a chance that the path is a module.
2014-03-27 15:09:53 +08:00
bernard
de16b800a4
[scons] fix the BSP_ROOT issue in ua.py.
2014-03-25 10:04:48 +08:00
bernard
74ee48a3da
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
2014-03-24 14:51:22 +08:00
bernard
6289a1aa25
Add UA building script.
2014-03-24 14:50:47 +08:00
prife
2427f2a87e
Merge pull request #246 from nongxiaoming/master
...
modify the pixel format to RGB565 in sdl_fb.c
2014-03-23 16:32:10 +08:00
nongxiaoming
c20ec19a96
modify the pixel format to RGB565 in sdl_fb.c
2014-03-12 16:36:39 +08:00
bernard
04b5a46179
[Finsh] fix the shell prompt issue.
2014-03-12 16:25:59 +08:00
bernard
444b928d22
Add more command to msh for module.
2014-03-12 08:47:10 +08:00
bernard
09bb7393b2
[Pthreads] fix compiling warning
2014-03-11 16:05:14 +08:00
bernard
33a5abbbf8
[Finsh] Use msh as prompt when current mode is msh mode.
2014-03-11 15:54:21 +08:00