Gregory Nutt
bcb4409756
sched/wdog/wd_start.c: Back out a kludge-workaround for an SDCC compiler problem fix back in Feb 2017 by commit b8f3bd857b
. That workaround now appears to conflict with newer GCC versions using unsupport warning options.
2019-10-04 09:10:15 -06:00
Gregory Nutt
6c2f73774b
armv7-a and xtensa: Apply Masayuki Ishakawa's change of cef90a3865
to these these other SMP architectures as well.
2019-10-04 07:17:35 -06:00
Masayuki Ishikawa
cef90a3865
Merged in masayuki2009/nuttx.nuttx/fix_up_sigdeliver_for_smp (pull request #1043 )
...
arch: armv7-m: Fix a deadlock in up_sigdeliver() in SMP mode.
In previous implementation, up_disable_irq() was called before
recovering local context. However, I noticed a deadlock happens
in the following situation. For example, if up_sigdevliver() is
in progress on CPU0 and CPU1 has called up_cpu_paused to CPU0,
hence g_cpu_irqlock has been locked by CPU1, in this case,
we would see a deadlock in later call of enter_critical_section()
to restore irqcount.
To avoid this situation, we need to call enter_critical_section()
to break the deadlock.
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-10-04 12:40:26 +00:00
raiden00pl
7715ee71d2
Merged in raiden00/nuttx_sim (pull request #1044 )
...
sched/signal/sig_default.c: fix undefined reference to sched_suspend if CONFIG_SIG_SIGSTOP_ACTIO not defined and eliminate compilation warnings
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-10-04 11:51:14 +00:00
Gregory Nutt
cc485f2e2c
arch/arm/src/stm32/stm32_usbdev.c: Fix some new warnings reported by gcc 8.3.1 in build tests.
2019-10-03 16:34:14 -06:00
Xiang Xiao
8ffa77b167
tools/mkexport.sh: Should export full content for flat build even with CONFIG_BUILD_LOADABLE.
2019-10-03 14:08:32 -06:00
Gregory Nutt
8471da9dec
tools/Config.mk: Update comments to indicate how to use the single-file compilation options.
2019-10-03 08:23:22 -06:00
Gregory Nutt
312a8c6851
tools/testbuild.sh: Reapply edb19474bc
, it was an error to revert it. The cause of the problem appears to be elsewhere.
2019-10-03 08:03:30 -06:00
Gregory Nutt
a5fecf88dc
Revert "tools/testbuild.sh: Use CPU option on 'make distclean' too, but not 'make olddefconfig."
...
This reverts commit edb19474bc
.
2019-10-03 07:55:54 -06:00
Gregory Nutt
4c8854b3c6
tools/testbuild.sh: Remove a spurious semicolon that was causing some errors.
2019-10-03 07:52:16 -06:00
Masayuki Ishikawa
193698c89c
Merged in masayuki2009/nuttx.nuttx/fix_untracked_files (pull request #1042 )
...
boards: cxd56xx: common: Add .gitignore not to show untracked files.
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-10-03 13:08:04 +00:00
Masayuki Ishikawa
4c53f0d232
Merged in masayuki2009/nuttx.nuttx/spresense_smp (pull request #1041 )
...
Spresense smp
* arch: arm: Add ARCH_GLOBAL_IRQDISABLE to ARCH_CHIP_CXD56XX in Kconfig
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
* arch: arm: cxd56xx: Make fpuconfg() public in cxd56_start.c
NOTE: fpuconfig() is called in both cxd56_start.c and cxd56_cpustart.c
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
* arch: arm: cxd56xx: Add support for SMP
NOTE: To run cxd56xx in SMP mode, new boot loader which will be
released later must be used.
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
* arch: arm: cxd56xx: Add irq routing for SMP in cxd56_irq.c
NOTE: In cxd56xx, each external interrupt controller can be
accessed from a local APP_DSP (Cortex-M4F) only. This commit
supports IRQ routing for SMP by calling up_send_irqreq() in
both up_enable_irq() and up_disable_irq().
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
* boards: spresense: Add smp configuration
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-10-03 13:06:21 +00:00
Xiang Xiao
37ef3c1cbc
tools/Config.mk: Support the ability to change the CFLAGS for the compilation of a single file. Set special compiler options as follows the rule:
...
sourcefile + fixed suffix "_[A|C|CPP|CXX]FLAGS"
apps/examples/hello/Makefile:
$(SRCDIR)/hello_main.c_CFLAGS = -DTEST
2019-10-03 06:49:17 -06:00
Gregory Nutt
edb19474bc
tools/testbuild.sh: Use CPU option on 'make distclean' too, but not 'make olddefconfig.
2019-10-02 17:26:12 -06:00
Gregory Nutt
6371b4915c
tools/testbuild.sh: Add an option to select the number of CPUs to use with 'make'
2019-10-02 17:11:33 -06:00
Gregory Nutt
d9e47a17b8
Fix a typo introduced with 0dbb22f61c
.
2019-10-02 15:31:07 -06:00
Gregory Nutt
a9f2c5e76a
arch/arm/src/stm32l4/stm32l4_firewall.c: Correct a test to determine if an address lies in FLASH or not. Improper mask caused test to always fail.
2019-10-02 13:00:55 -06:00
Gregory Nutt
0dbb22f61c
drivers/wireless/ieee802154/mrf24j40/mrf24j40.c: Correct erroneous isolation of address mode field and subsequent bad comparison.
2019-10-02 12:50:43 -06:00
Gregory Nutt
388131f583
README.txt: Fix some typos.
2019-10-02 12:05:53 -06:00
Xiang Xiao
61ec1d7a1d
Makefiles: change ${shell pwd} to $(CURDIR) since pwd doesn't exist on Windows
2019-10-02 07:09:28 -06:00
Gregory Nutt
797b699c5e
boards/sim/sim/sim/README.txt: Fix some typos in the README.
2019-10-01 11:36:51 -06:00
Gregory Nutt
750df900d3
tools/README.txt: Trivial reference to a simulator README file added.
2019-10-01 11:10:16 -06:00
Xiang Xiao
c8cb2fe492
tools/mkexport.sh: Copy the essential build script files too and move Make.defs/gnu-elf.ld into scripts like board folder layout.
2019-10-01 07:54:11 -06:00
Xiang Xiao
f23ccd5bb0
libs/libc/ Kconfig files: Disable EXECFUNCS_HAVE_SYMTAB for kernel build. The symbol table don't have any meaning for kernel build since all executable binary should be self contained.
2019-10-01 07:19:21 -06:00
Gregory Nutt
5058911f46
drivers/crypto/dev_urandom.c: Revert part of fe983a4471
. The change was ill informed and introduced warnings when CONFIG_DEV_URANDOM_RANDOM_POOL is selected. As noted by Juha Niskanen in commit comments.
2019-10-01 07:13:19 -06:00
Masayuki Ishikawa
30021c4dee
Merged in masayuki2009/nuttx.nuttx/add_gc_sections (pull request #1040 )
...
boards: spresense: Add --gc-sections to LDFLAGS in scripts/Make.defs
Also, add -ffunction-sections -fdata-sections to ARCHCFLAGS
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-10-01 12:03:54 +00:00
Masayuki Ishikawa
9673debe2b
Merged in masayuki2009/nuttx.nuttx/fix_cxd56_ostest (pull request #1039 )
...
fix_cxd56_ostest
* boards: spresense: Fix config names in cxd56_ostest.c
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
* boards: spresense: Enable ostest in rndis/defconfig
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
* boards: spresense: Enable ostest in wifi/defconfig
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-10-01 03:24:55 +00:00
Gregory Nutt
e8542c844c
tools/README.txt: Update to show new usage of mksymtab.
2019-09-30 13:46:33 -06:00
Gregory Nutt
0671ced130
tools/mksymtab.c: Fix a typo help introduced in last commit. Show default values.
2019-09-30 12:59:34 -06:00
Gregory Nutt
ba51027449
tools/mksymtab.c: Clean up syntax of help text.
2019-09-30 08:59:21 -06:00
Gregory Nutt
0cdc208b2c
tools/Makefile.host: Add missing binaries from clean target
2019-09-30 08:29:38 -06:00
Xiang Xiao
0efd3e2e7f
tools/Directories.mk: Remove FSDIRS/NOFSDIRS related logic/comments since the file system can no longer be disabled now.
2019-09-30 07:11:26 -06:00
Xiang Xiao
5f37226b6d
tools/ Make fragments: Fix the various minor issue for NUTTXLIBS/USERLIBS
...
1. Remove libcxx duplication in FlatLibs.mk and from kernel space
2. Remove libpass1 from KernelLibs.mk since kernel build doesn't support the two pass mode
3. Remove FSDIR related comment since file system cannot be disabled now
2019-09-30 07:03:55 -06:00
Xiang Xiao
2d794f4102
Configuration: Auto-select CONFIG_BUILD_LOADABLE when either CONFIG_BUILD_KERNEL or CONFIG_BINFMT_LOADABLE is selected.
2019-09-30 06:57:16 -06:00
Xiang Xiao
d4ca483edc
tools/Makefile.unix: Make COMMON_DIR work with CONFIG_ARCH_BOARD_CUSTOM.
2019-09-30 06:49:20 -06:00
Nathan Hartman
46aaec7ba0
Fix minor typos in docs and comments.
2019-09-29 12:52:20 -06:00
Gregory Nutt
c1c36db37e
boards/arm/stm32rl4: Remove inclusion of STM32 L4 header files from all board.h header files.
2019-09-29 11:37:46 -06:00
Gregory Nutt
e34ee02929
Add some comments ti i.MXRT board.h header files.
2019-09-29 09:41:16 -06:00
Gregory Nutt
cbf6ffe4e7
boards/arm/stm32f7: Remove inclusion of STM32 F7 header files from all board.h header files.
2019-09-29 09:31:47 -06:00
Gregory Nutt
93452d70ef
net/inet/inet_close.c: Fix a warning found in build testing.
2019-09-28 12:57:26 -06:00
Xiang Xiao
389ac36f20
libs/libc: Add CONFIG_MODLIB_SYSTEM_SYMTAB to generate the symbol table for dlopen/insmod.
2019-09-28 11:17:01 -06:00
Xiang Xiao
8e74365b96
ibs/libc, libs/symtab, tools/ build system: Move symbol table generation into libc since the address in symbol table should come from userspace binary for protect build, not kernel binary.
2019-09-28 11:14:48 -06:00
Xiang Xiao
4d7dac47f9
libs/symtab/Makefile and tools/mksymtab.c: Ensure that the generated symbol table name same as the configuration option.
2019-09-28 11:02:53 -06:00
Gregory Nutt
0c13f7c8d0
Fix a typo in include/nuttx/symtab.h
2019-09-28 10:57:54 -06:00
Xiang Xiao
e92b4374bc
libs/libc: move writev from math.csv to libc.csv
2019-09-28 10:57:03 -06:00
Xiang Xiao
f96410b58e
tools/simbridge.sh: Add simbridge.sh to simplify the simulator bridge creation.
2019-09-28 10:54:54 -06:00
ligd
9924e88d1e
arch/sim: Add stack color feature for ps command.
2019-09-28 10:46:12 -06:00
Gregory Nutt
f4b57499c9
Update some comments, spacing.
2019-09-28 09:55:31 -06:00
Daniel Pereira Volpato
0566525764
libs/libxx/Kconfig: Automatically select CONFIG_CLOCK_MONOTONIC when CONFIG_LIBCXX is selected.
...
Remove hardcoded -DCLOCK_MONOTONIC from CFLAGS in Make.defs of several configurations. That defintiion is now automatically adding this define when CONFIG_LIBCXX=y.
2019-09-27 12:31:08 -06:00
Gregory Nutt
65e6ff11cc
boards/arm/stm32/stm32f429i-disco: Clean up problems after removing forbidden header files from board.h header file.
2019-09-27 11:46:13 -06:00