rm48x50: fix the prototype of finsh_system_init
rm48x50: cleanup HALCoGen code
rm48x50: add GCC support
rm48: move some asm file to libcpu
rm48x50: cleanup sys_startup.c
cortex-r4: remove RM48x50.h and add armv7.h
cortex-r4: dump register on traps

We could not handle any traps except IRQ/FIQ.
initialize timer in bsp

With new timer algorithm, timer should be initialized during startup. So
add them to the bsps. Use these commands to get which bsp is missing
calling the function:

    % git grep rt_system_timer_init bsp|sed -n 's|bsp/\([^/]*\).*|\1|p' | sort | uniq > have_tm_init
    % ls -1 bsp |sed -n 's|\([^/]*\).*|\1|p' | sort > all_bsp
    % comm -3 all_bsp have_tm_init
    beaglebone
    lpc176x
    lpc178x
    ls1bdev
    mb9bf506r
    stm32f10x
    xplorer4330
Merge pull request #182 from grissiom/fix-timer-init

initialize timer in bsp
device/pipe: add a control cmd to get the space left in pipe
log_trace: add a in-mem-log example

After `log_trace_init()`, call `memlog_init`. It then turn the logtrace
into a "in-memory" logger which will buffer all the log in memory. It
also set a hook in idle to flush all the log into console. One may
create an other thread to flush the logs but idle might be the simplest
place to go.
Merge pull request #181 from grissiom/rm48x50-next

Rm48x50 next
Merge pull request #183 from grissiom/log_trace-in-mem

Log trace in mem
K60: fix compile error
Merge pull request #184 from caicai07/k60-fix

K60: fix compile error
serial: do onthing if the size of read/write is zero

Return early if the size is 0 as there is nothing to do.
serial: set the errno if and only if in thread context

The errno is associated with threads. It will crash the thread if we set
it in interrupt context.
k60: add rt_interrupt_{enter,leave} in IRQHandler
Merge pull request #186 from grissiom/serial-fix

Serial fix
Revert "serial: set the errno if and only if in thread context"

This reverts commit 07bd09fc0fc256e5c53ad3c6157802fd94c9910c.
The validation of the context is done with in `rt_set_errno`. So it's
safe to call it here.