Xiang Xiao
2a7029dd52
arch/sim: All cpu core need conform to CONFIG_SIM_WALLTIME behaviour
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-19 07:51:18 -06:00
zhongan
b4a50a9192
fix nxstyle warning.
...
Signed-off-by: zhongan <zhongan@xiaomi.com>
2020-04-15 12:30:50 -03:00
zhongan
4ff0edce25
arch/sim: add implemntation of 'host_sleep'.
...
Change-Id: Ib82343565ca9541499dec52c753c3f15923f7d1c
Signed-off-by: zhongan <zhongan@xiaomi.com>
2020-04-15 12:30:50 -03:00
zhongan
a41c5e01e1
arch/sim: add header to remove warning when build with 'CONFIG_SYSLOG_RPMSG_SERVER'.
...
Change-Id: I58ebe25434aaebce3812abb52caf3c670118cb66
Signed-off-by: zhongan <zhongan@xiaomi.com>
2020-04-15 12:30:50 -03:00
liuhaitao
459ad99373
Use EXTRAFLAGS instead of EXTRADEFINES to be used by make via command line
...
So call 'make EXTRAFLAGS=-Wno-cpp' could suppress the warnings with pre-processor
directive #warning in GCC.
Change-Id: Iaa618238924c9969bf91db22117b39e6d2fc9bb6
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-04-11 08:31:08 -06:00
ligd
231ad202ee
global change: repace sched_xfree() to kxmm_free()
...
Changes:
sched_xfree() => kxmm_free()
remove garbage related APIs
remove ARCH_HAVE_GARBAGE
Cause garbage feature move to mm_heap, then don't need
garbage anymore.
Change-Id: If310790a3208155ca8ab319e8d038cb6ff92c518
Signed-off-by: ligd <liguiding@fishsemi.com>
2020-04-09 10:29:28 -06:00
Nakamura, Yuuichi
9029e4daee
Fix nxstyle issues
2020-04-07 06:23:15 -06:00
Nakamura, Yuuichi
e264484c16
Remove type casting to wdentry_t (arch/)
2020-04-07 06:23:15 -06:00
Nathan Hartman
679b4fbee2
arch: Fix included directed -> included directly
...
This typo had been copied and pasted into numerous irq and syscall
headers.
2020-04-05 22:31:15 +01:00
Alan Carvalho de Assis
30ca00c0a9
Check for return of nxsem_wait_uninterruptible. This commit is for files under arch/sim
2020-04-01 19:50:39 +01:00
YAMAMOTO Takashi
40d7f83e31
sim: Appease a few prototype warnings
2020-03-28 12:08:57 +01:00
YAMAMOTO Takashi
a493c92826
sim: Use executable memory for the heap
...
On modern environments, bss is not executable.
Alternatively we can use the ARCH_HAVE_MODULE_TEXT mechanism.
But it's considered overkill for the sim, which is mainly
for development.
2020-03-27 00:04:36 -05:00
YAMAMOTO Takashi
d6d03d64d5
sim: Hide strerror/strerror_r
2020-03-25 21:35:17 -06:00
YAMAMOTO Takashi
27aa16111c
sim: hostfs: Stop assuming CONFIG_NAME_MAX=32
2020-03-25 20:31:32 -06:00
YAMAMOTO Takashi
f89ccf873e
sim: host_readdir: Ensure NUL termination when truncating d_name
2020-03-25 20:31:32 -06:00
YAMAMOTO Takashi
2991836ee8
sim: Appease nxstyle errors
2020-03-25 00:09:21 -05:00
YAMAMOTO Takashi
9fdda58eca
sim: Hide putenv
2020-03-23 18:17:58 -06:00
YAMAMOTO Takashi
2e933102e1
sim: Hide getopt related globals
...
Right now this is rather theorethic as we don't actually
use getopt though.
2020-03-23 14:38:17 -05:00
YAMAMOTO Takashi
702d82d052
vpnkit: Add a config to specify the socket
2020-03-23 14:37:56 -05:00
YAMAMOTO Takashi
12a97acaed
vpnkit: Make this less verbose on connection errors
2020-03-23 14:37:28 -05:00
YAMAMOTO Takashi
1ffa009c8b
Revert "Don't generate .depend anymore"
...
This reverts commit 79af7fbf4e
.
Because:
* btashton reported some issues in local builds:
https://github.com/apache/incubator-nuttx/pull/603#issuecomment-602264860
* this might be related to the current CI breakage:
> /bin/sh: 1: /__w/incubator-nuttx/incubator-nuttx/nuttx/tools/mkdeps: not found
2020-03-22 23:07:29 -05:00
Xiang Xiao
79af7fbf4e
Don't generate .depend anymore
2020-03-22 18:15:29 +00:00
YAMAMOTO Takashi
9b88ecc1b2
sim: Make SIM_NETDEV_TAP depends on LINUX||WINDOWS
2020-03-21 00:23:40 -05:00
YAMAMOTO Takashi
a5f8b20fcd
sim: Add a netdev backed by VPNKit
2020-03-19 09:13:32 -05:00
YAMAMOTO Takashi
124c00b661
Appease nxstyle complaints in files from vpnkit
2020-03-19 09:13:32 -05:00
YAMAMOTO Takashi
cd10bd67c4
Add copyright notices to files from vpnkit
2020-03-19 09:13:32 -05:00
YAMAMOTO Takashi
4062727333
negotiate() function extracted from vpnkit
...
From:
https://github.com/moby/vpnkit
commit 2ffc1dd8a84ea7359dd09b1f4b51bb728d4f46a0
c/vpnkit-tap-vsockd/tap-vsockd.c
With minimum changes to make it build.
2020-03-19 09:13:32 -05:00
YAMAMOTO Takashi
b748fcde0a
vpnkit/protocol.c: make this compile
2020-03-19 09:13:32 -05:00
YAMAMOTO Takashi
261249cc99
vpnkit: Add a few files from vpnkit
...
From:
https://github.com/moby/vpnkit
commit 2ffc1dd8a84ea7359dd09b1f4b51bb728d4f46a0
c/vpnkit-tap-vsockd/protocol.h
c/vpnkit-tap-vsockd/protocol.c
2020-03-19 09:13:32 -05:00
Nathan Hartman
a5e643b0cd
Fix typos in comments and documentation.
2020-03-16 20:01:11 -06:00
Petro Karashchenko
3fa6baec98
spi: change spi_send() interface to support of 32-bit word transfer
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2020-03-09 08:03:35 -06:00
Juha Niskanen
f3490e42c3
Fix typos in comments
2020-03-03 09:11:57 -06:00
Xiang Xiao
b9b86fcc63
arch/sim: Handle tap device initializition failure gracefully
2020-02-24 08:42:03 -06:00
Xiang Xiao
96adb827a3
arch/sim: Ensure all host printf end with \r\n
...
Since simulator switch console to raw mode, we have to add \r manually
2020-02-24 08:41:45 -06:00
Xiang Xiao
cde88cabcc
Run codespell -w with the latest dictonary again
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-02-23 22:27:46 +01:00
liuhaitao
b4cf5f5dab
arch: refine up_serialinit/up_earlyserialinit/rpmsg_serialinit
2020-02-23 09:11:57 -06:00
Xiang Xiao
bd4e8e19d3
Run codespell -w against all files
...
and fix the wrong correction
2020-02-22 14:45:07 -06:00
Gregory Nutt
d06d8fbca2
Run all .c and .h files modified by PR301 through nxstyle.
2020-02-19 07:23:41 -06:00
Xiang Xiao
892290f76b
syslog: Call syslog_rpmsg_init inside syslog_initialize like other syslog driver
2020-02-19 07:19:34 -06:00
Xiang Xiao
51a2171c71
ramlog: Remove g_ramlog_syslog_channel since it's same as g_default_channel
...
And remove syslog_init_e because all initialization is later now and we don't
distinguish the initialition phase anymore after ramlog don't need special
initialize.
2020-02-18 13:04:45 -06:00
Xiang Xiao
dcaaf2d912
ramlog: Remove all ramlog_consoleinit related code
...
Because we can get the same function by CONSOLE_SYSLOG/syslog_console_init.
BTW, it isn't a good choice to use g_ramlogfops as /dev/console since nsh
will read back what it send out which will surprise most people.
2020-02-18 12:57:43 -06:00
Xiang Xiao
6b77f73583
arch: Move iob_initialize into nx_start just after heap initialization
...
it doesn't make sense that iob initialization is in up_initialize
but other memory components initialization is called in nx_start
Change-Id: Id43aeaa995f340c5943f59a0067a483ff3ac34a2
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-02-18 10:26:19 -03:00
Xiang Xiao
e7d9260014
arch: Customize the typedef of size_t instead of intptr_t
...
To ensure size_t same as toolchain definition in the first place and rename CXX_NEWLONG to ARCH_SIZET_LONG. The change also check whether __SIZE_TYPE__ exist before CONFIG_ARCH_SIZET_LONG so our definition can align with toolchain(gcc/clang) definition automatically.
2020-02-18 07:15:19 -06:00
Xiang Xiao
866a531899
sim/rtc: Don't change the host wall clock in sim_rtc_settime
2020-02-16 09:44:04 -06:00
Gregory Nutt
5d850fb197
arch/sim/src/sim/up_oneshot.c: Eliminate warning from build test.
2020-02-15 19:47:02 +01:00
Gregory Nutt
f5e0bb2d30
Run all files modified by PR274 through nxstyle.
2020-02-15 07:17:22 -06:00
Xiang Xiao
8b5658b918
arch/sim: Implement arch rtc interface on top of rtc driver
2020-02-15 07:17:19 -06:00
Xiang Xiao
d0d4b7a531
Reimplement arch alarm timer on top of oneshot driver framework
...
The benefit include:
1. Simplify the implementation
2. Support both tick and tickless automatically
3. No time drift in tickless mode
4. Support critmon arch API automatically
2020-02-15 07:17:16 -06:00
YAMAMOTO Takashi
1a3f59be58
sim: Make hostfs build for macOS
...
* Ignore O_DIRECT if the host OS doesn't provide it.
* Use statvfs instead of statfs. The former is in POSIX and
more widely available these days.
2020-02-13 15:17:36 +08:00
YAMAMOTO Takashi
22d002762b
sim: Add more names to nuttx-names.dat
2020-02-12 20:39:08 -06:00