Xiang Xiao
9c74380b11
tools/ci: Enable build sim:cxxtest
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-20 18:01:54 +08:00
Xiang Xiao
67fc54dd3d
boards/sim: Change CONFIG_LIBCXX to CONFIG_HAVE_CXXINITIALIZE
...
since the contructor is required with other libc++ implementation
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-20 16:20:41 +08:00
Xiang Xiao
af7fd718cc
arch/sim: Don't add -lc++abi to STDLIBS
...
link libs/libxx/libcxxabi instead
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-20 16:20:41 +08:00
YAMAMOTO Takashi
10f7ad85e6
arch/sim/src/nuttx-names.in: Add mprotect and sysconf
...
For up_macho_init.c.
2022-01-20 15:09:17 +08:00
YAMAMOTO Takashi
f0acf8e62a
arch/sim/src/sim/up_macho_init.c: Add a workaround for Monterey
2022-01-20 15:09:17 +08:00
Xiang Xiao
2763f67640
tools/ci: Remove testlist/all.dat
...
since it isn't used anymore and mismatch with other *.dat
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-20 14:46:56 +08:00
Alexander Lunev
ea6141e01b
Documentation: added "Testing / capturing TCP network traffic" section, including packet loss emulation
2022-01-20 14:15:33 +08:00
Petro Karashchenko
08043fb5bc
net: unify FAR keyword usage for all net buffer memory mapped buffers
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-20 01:42:56 +08:00
Jukka Laitinen
fc3167b584
boards/riscv/mpfs: Remove reference to .vectors in linker scripts
...
There is no such section. Instead, place the object mpfs_head.o at the start of
the text.
Put mpfs_head.o directly into the arch library; there is no need to define
it separately in HEAD_ASRC.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2022-01-20 01:37:34 +08:00
Jukka Laitinen
6428c1fdc4
arch/riscv/mpfs: Switch to use riscv_exception_common
...
Clean up mpfs port by using the common code
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2022-01-20 01:37:34 +08:00
Jukka Laitinen
7b8eec3fa4
arch/risc-v/src/common/riscv_exception_common.S: Add support for > 2 CPUs
...
Add a new configuration for CONFIG_N_IRQ_STACKS, whcih defaults to
CONFIG_SMP_NCPUS or 1
- this allows configuring multiple IRQ stacks also in the case where SMP
support is not needed
- this is specifically needed in mpfs target, where "bootloader" build boots
only on one hart, but the startup code executes on all harts and handles SW IRQs
Also don't store/restore GP if RISCV_SAVE_GP is not defined. If the GP is not
stored in fork, it can't be restored for new tasks
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2022-01-20 01:37:34 +08:00
Petro Karashchenko
767cf282c7
boards/arm/samv7: move HSMCI interface to common
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-20 01:24:14 +08:00
yinshengkai
face0514b6
touchscreen: update sim_touchscreen, using touch_upperhalf
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-01-20 01:22:25 +08:00
yinshengkai
3bb4e053fe
driver/uinput: add uinput button support
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-01-20 01:20:19 +08:00
yinshengkai
377c15955e
driver: add uinput support
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-01-20 01:20:19 +08:00
yinshengkai
676b735c4a
driver/touchscreen: Add support for write operations
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-01-20 01:20:19 +08:00
YAMAMOTO Takashi
ec54c4e30d
tools/ci/testlist/sim-01.dat: Enable libcxxtest for macOS
2022-01-20 01:16:56 +08:00
YAMAMOTO Takashi
a3c96a520f
task_startup: Implement cxx_initialize for sim/macOS
2022-01-20 01:16:56 +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
dd08815991
idle: remove heap & stack check in idle thread
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-01-20 01:14:56 +08:00
Daniel Agar
12c8a9626c
stm32f7 serial fix PM_CONFIG build
2022-01-20 01:08:06 +08:00
zhuyanlin
793ec6c909
arch:xtensa:vectors:fix bugs in a0 save
...
Use right EXCSAVE_X
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2022-01-19 16:28:03 +01:00
zhuyanlin
a1a9ce3d1e
arch:xtensa_panic: use right interrupt pointer in xtensa_panic
...
When enable interrupt stack, use a12 instead of sp
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2022-01-19 16:28:03 +01:00
zhuyanlin
88f5a209ce
xtensa: move a3 save in handler instead of _xtensa_context_save
...
As in _xtensa_syscall_handler, a3 was save and reused before
_xtensa_context_save, a3 save in _xtensa_context_save will generate
error.
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2022-01-19 16:28:03 +01:00
zhuyanlin
561fa88ed1
xtensa: add svcall handler
...
svcall.c for xtensa
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2022-01-19 16:28:03 +01:00
zhuyanlin
662f071d9a
xtensa: fix svccall enter error
...
1. error in A3 push stack
2. when interrupt stack enable, push a12 is xtensa_irq_dispatch
parameter 1, instead of sp. As sp is interrupt stack address set by
`setintstack`, not the interruptee stack address
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2022-01-19 16:28:03 +01:00
Jukka Laitinen
ae31cbde09
Fix an overflow in blkcnt_t gpt_last_lba
...
If CONFIG_FS_LARGEFILE is not defined, the calculation overflows for larger
disks, since blkcnt_t is 32 bits.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2022-01-19 15:58:35 +01:00
Petro Karashchenko
a6147109b1
arch/arm/src/armv6-m: fix typo
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-19 15:32:58 +01:00
Petro Karashchenko
b7d5d54d7c
boards/same70-qmtech: switch console to UART0
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-19 11:06:19 -03:00
ligd
302945760c
rpmsg_rtc: dirctly call rpmsg_rtc_server_xx() in server_ept_cb()
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-01-19 19:37:02 +08:00
Petro Karashchenko
4d5aace138
boards/arm/samv7: fix build error when automount is enabled
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-19 19:36:36 +08:00
chao.an
086fb829fd
net/usrsock: fix build warning
...
usrsock/usrsock_sockif.c:72:3: warning:
initialization of ‘int (*)(struct socket **)’ from incompatible pointer type
‘int (*)(struct socket *, int, void *, size_t)’ {aka ‘int (*)(struct socket *, int, void *, long unsigned int)’} [-Wincompatible-pointer-types]
72 | usrsock_ioctl /* si_ioctl */
| ^~~~~~~~~~~~~
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-01-19 12:09:53 +01:00
Petro Karashchenko
630c209bbc
tools: add option to reuse boards common files for custom boards
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-19 12:09:37 +01:00
Petro Karashchenko
87e5b1b87c
tools/mkromfsimg.sh: fix build error in case if romfs is used
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-19 12:09:22 +01:00
SPRESENSE
13d3527642
boards: cxd56xx: Add board serial string for usb devices
...
Add obtaining board unique serial string logic for USB devices.
refs #13909
2022-01-19 09:25:48 +01:00
SPRESENSE
021a58d71a
usbdev: Add board unique serial string support
...
iSerialNumber field in the device descriptor can be used to determining the
board when multiple boards connected to the same host. So add feature to change
serial string by board unique ID dynamically.
To use this feature, user must be implement the board_usbdev_serialstr() logic.
refs #13909
2022-01-19 09:25:48 +01:00
YAMAMOTO Takashi
f2ee1c5b35
boards/sim/sim/sim/scripts/Make.defs: undefine more platform macro
...
Namely __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__,
which libcxx refstring.h uses to detect macOS.
2022-01-19 11:38:21 +08:00
YAMAMOTO Takashi
7a576ff056
boards/sim/sim/sim/scripts/Make.defs: Disable libcxx availability macros
2022-01-19 11:38:21 +08:00
Alexander Lunev
6bb7a92a9a
net/tcp/tcp_send*: added debug asserts for TCP_ACKDATA, TCP_REXMIT and TCP_DISCONN_EVENTS flags
2022-01-19 10:45:38 +08:00
Xiang Xiao
8bcdefafc9
board: Remove -fno-strength-reduce
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-19 00:14:03 +01:00
ligd
67f7efe0b1
rpmsg_rtc: fix typo
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-01-18 17:51:02 +01:00
Alexander Lunev
79e609a8c8
net/tcp/sendfile: swapped the location of TCP_DISCONN_EVENTS and TCP_ACKDATA conditions towards tcp_send_unbuffered.c unification
2022-01-19 00:13:38 +08:00
ligd
a9e3a5c233
rpmsg_rtc: to simply the SYNC cmd logic
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-01-18 22:48:15 +08:00
ligd
cb502a869c
clock: update clock_synchronize() to support with time
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-01-18 22:48:15 +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
raiden00pl
4e1df81fa8
boards/nucleo-g431rb: add CAN example
2022-01-18 18:19:10 +08:00
raiden00pl
499c7ce4f5
boards/b-g431b-esc1: add CAN example
2022-01-18 18:19:10 +08:00
raiden00pl
d3841eb753
boards/nucleo-g431rb: add option to select HSI or HSE ass PLL source
2022-01-18 18:19:10 +08:00
raiden00pl
72ce934f73
boards/b-g431b-esc1: add option to select HSI or HSE as PLL source
2022-01-18 18:19:10 +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