yinshengkai
face0514b6
touchscreen: update sim_touchscreen, using touch_upperhalf
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-01-20 01:22:25 +08:00
YAMAMOTO Takashi
a94c52b204
sim: Postpone constructor calls on macOS
...
For Linux, we rename the section so that they are not invoked.
However, it doesn't work for macOS.
Notes:
* Renaming the sections (as the Linux version does) doesn't work
because the section is looked by its flags, not by its names.
* No convenient tools available to alter the relevant bit in
the section flags.
* The constructors are invoked before the program entry point.
2022-01-20 01:16:56 +08:00
ligd
0a51f13ca5
rpmsg_rtc: merge the rpmsg_rtc_init to same place
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-01-18 22:48:15 +08:00
Petro Karashchenko
9551de7115
net: use HTONS, NTOHS, HTONL, NTOHL macro in kernel code
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-18 10:59:47 +01:00
Petro Karashchenko
8d3bf05fd2
include: fix double include pre-processor guards
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-16 11:11:14 -03:00
Xiang Xiao
41b9cf3cd8
rtc/rpmsg: Add sync parameter to control whether call clock_synchronize
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-16 11:58:13 +01:00
Xiang Xiao
93b0b9678f
sim: Forward /dev/rtc0 operation to rpmsg rtc driver
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-16 11:58:13 +01:00
Alexander Lunev
019fc0ad78
sim/netdev: eliminated RX data stream congestion in case of high TX network traffic.
...
In case of high TX network traffic, netdriver_loop() that reads data from netdev
was invoked via up_idle() only after high TX network traffic had stopped.
That resulted in massive delay and drop of TCP ACK packets and
any other packets from netdev (tun/tap device).
2022-01-14 19:39:39 +08:00
Xiang Xiao
bbf5511e3a
arch/sim: Move the dummy ioe driver to drivers/ioexpender
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-09 11:06:06 +08:00
Xiang Xiao
b054bd9d37
arch/sim: Move the dummy foc driver to drivers/motor/foc
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-09 11:06:06 +08:00
Xiang Xiao
3156a96a1b
arch/sim: Move qspiflash simulation to drivers/spi instead
...
since it's common implementation can be used in other arch too
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-07 23:50:11 +08:00
Xiang Xiao
d296f9c085
arch/sim: Move spiflash simulation to drivers/spi instead
...
since it's common implementation can be used in other arch too
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-07 23:50:11 +08:00
Xiang Xiao
49c00e0361
arch/sim: Rename up_vfork[32|64].S to up_vfork_x86[_64].S
...
to follow other arch/x86 arch/x86_64 convention
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-07 15:59:34 +08:00
Xiang Xiao
1a02556265
Revert "arch/sim: Rename up_vfork[32|64].S to up_vfork_x[32|64].S"
...
This reverts commit 3982296294
.
2022-01-07 15:59:34 +08:00
Xiang Xiao
3982296294
arch/sim: Rename up_vfork[32|64].S to up_vfork_x[32|64].S
...
to align with up_vfork_arm.S naming style
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-06 09:42:44 +01:00
Zeng Zhaoxiu
fb43fd73ed
signal: signal handler may cause task's state error
...
For example, task is blocked by nxsem_wait(sem1), use nxsem_wait(sem2)
in signal handler, and take sem2 successfully, after exit from signal
handler to task, nxsem_wait(sem1) returns OK, but the correct result
should be -EINTR.
Signed-off-by: Zeng Zhaoxiu <zhaoxiu.zeng@gmail.com>
2022-01-05 21:36:44 +09:00
Xiang Xiao
d2309195da
boards/sim: Add vncserver config for test
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-03 11:19:32 +08:00
Xiang Xiao
f302e8fd40
arch/sim: Implement up_backtrace
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-29 11:03:08 +08:00
Xiang Xiao
f061766801
video/fb: Fix typo error in include/nuttx/video/fb.h
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-28 17:21:18 -03:00
chao.an
a42aa8415d
compile/flags: add FRAME_POINTER into Toolchain.defs
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-12-27 22:31:27 -06:00
Huang Qi
0751bcd4ca
arch/sim: Support vncserver as display device
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2021-12-24 11:59:43 -06:00
Xiang Xiao
b03886415f
sim/netdev: Update IFF_RUNNING flag by netdev_carrier_on and netdev_carrier_off
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-22 07:15:00 -03:00
chao.an
287348475c
sim/usrsock: increase the sim usrsock buffer size
...
1. Increase the sim usrsock buffer size:
arch/sim/src/sim/up_usrsock.c
2. Fix build break
arch/sim/src/sim/up_usrsock_host.c
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-12-21 00:53:31 -06:00
chao.an
c1c1882783
sim/usrsock: Reuse all addresses to avoid bind fail
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-12-18 13:15:46 -06:00
Jiuzhu Dong
5a22d33475
up_putc: do up_putc when enable CONFIG_ARCH_LOWPUTC
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-12-17 11:43:08 -06:00
Jiuzhu Dong
6b5a7a73ba
sim: add CONFIG_SIM_STACKSIZE_ADJUSTMENT to reduce variability
...
between sim and other different platform stack size setting
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-12-13 21:15:30 -06:00
Xiang Xiao
6357523892
arch: Add _wchar_t typedef like other basic types
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-09 16:57:23 +09:00
raiden00pl
54e3b148e9
arch/sim/src/sim/up_assert.c: fix implicit declaration warning
2021-12-07 07:51:44 -06:00
Xiang Xiao
a0990ee416
arch: Remove the duplicated up_tls_info implementation
...
Define up_tls_info in arch/arch.h directly if the general one isn't suitable
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-05 20:59:53 -06:00
Xiang Xiao
e30a5f3790
arch/sim: Add new option to enable arch specific hostfs
...
we have many different hostfs implementation now, so it's better
to select the implementation explicitly, just like what we have
done for arm(FS_HOSTFS vs. ARM_SEMIHOSTING_HOSTFS).
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-25 14:42:23 +01:00
chao.an
0f76ff42eb
arch/sim: add arch elf define
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-11-23 20:34:56 +09:00
Xiang Xiao
a29ee19af4
driver/motor: Remove the unnecessary critical section operation
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-11-18 19:27:07 -06:00
anjiahao
edaa8a0ce9
fix sim_x11fb compile error
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2021-11-13 05:58:01 -06:00
Xiang Xiao
3e967f784e
sim: Split SIM_SANITIZE to SIM_ASAN and SIM_UBSAN
...
align the naming style with MM_ASAN
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-02 21:02:43 +01:00
mage1
c82a676630
sim: fix sim runtime err under sanitize check mode.
...
since gcc sanitize can not stub proper code in nuttx kernel code.
2021-11-02 21:02:43 +01:00
yinshengkai
ee17ae5ba1
tool: add code coverage tool
2021-10-29 19:21:23 +02:00
chao.an
b90d094138
arch/sim: add native socket support based on usrsock
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-10-26 08:01:50 -05:00
chao.an
bd7cb1aae5
sim/bluetooth: remove the WIRELESS_BLUETOOTH depends if native host is in use
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-10-21 11:24:46 -05:00
Xiang Xiao
1efc9fbac6
sim/rptun: Trigger the callback only the sequnece number change
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-10-20 10:21:54 -03:00
liuhuan
ee6138e9ba
power: Open CONFIG_PM compilation failed
...
include debug.h
Signed-off-by: liuhuan <liuhuan16@xiaomi.com>
2021-09-30 07:16:07 -07:00
Alin Jerpelea
15a37c5a5a
arch: Omni Hoverboards: update licenses to Apache
...
Gregory Nutt has submitted the SGA
Omni Hoverboards has submitted the SGA
David Sidrane has submitted the ICLA
Mateusz Szafoni has submitted the ICLA
Sebastien Lorquet has submitted the ICLA
Paul Alexander Patience has submitted the ICLA
as a result we can migrate the licenses to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-09-28 04:37:38 -07:00
Xiang Xiao
5b75df2203
arch/sim: Implement up_puts function
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-09-18 07:33:44 -03:00
YAMAMOTO Takashi
58bdcbab9b
Revert "Make: use gcc as LD"
...
This reverts commit 45672c269d
.
Because:
* It's very confusing to have cc as LD.
* I don't see what "-nostartfiles -nodefaultlibs" in LDFLAGS are
supposed to do when we use LD directly. It would be simpler to
remove them from our LDFLAGS.
2021-09-08 09:40:48 +08:00
liucheng5
fdb9576d7a
feature: driver: Add a Linux SPI into simulator.
...
When SIM_SPI is valid, a specified Linux SPI device ‘spidevN.P’(N is bus number and P is CS number) is attached to nuttx simulator, shown as 'spi0' under /dev. One may type spi command (need SPITOOL valid) in NSH to control the Linux SPI and exchange data, other devices such sensors can use it to debug in simulator on a Ubuntu PC. Note that a USB<>SPI module (e.g. CH341A/B) should be plugged in to achieve Linux SPI ports.
Change-Id: I275b2c2bbf6d14bcdf514c89efb9a2264d69e9a3
Signed-off-by: liucheng5 <liucheng5@xiaomi.com>
2021-09-03 18:15:25 +08:00
Gustavo Henrique Nihei
2071aadc0e
sim: Inhibit stack protector on stack coloration function
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-09-01 23:11:03 +08:00
Abdelatif Guettouche
5ff703d5d0
arch/*_testset: Fix few typos.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-08-25 00:20:20 +08:00
Abdelatif Guettouche
5b350f3a0f
arch/*_reprioritizertr.c: Fix typos in comments.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-08-14 11:19:34 -07:00
Xiang Xiao
776458143c
fs/hostfs: Support fchstat and chstat callback
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-09 17:55:44 -03:00
buyuer
ae3709819c
Use exit func iml host_abort.
...
When use poweroff command,host_abort will be called,but may be make __stack_chk_fail irq, and host_abort be called in PANIC(), so bring infinite loop, in turn it can not exit SIM.
Signed-off-by: buyuer <dingddding@163.com>
2021-07-31 08:02:10 -07:00
Jiuzhu Dong
7e393762a7
sim/rptun: optimize multi-core startup and don't need to wait each other.
...
Change-Id: I6172823c84a96e4082fa5f33bdb05d7bd1d3b056
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-07-26 19:38:07 -07:00