Xiang Xiao
6d69439f58
Call xxx_timer_initialize from clock subsystem
...
Call xxx_timer_initialize from clock subsystem to make timer ready for use as soon as possiblei and revert the workaround:
commit 0863e771a9
Author: Gregory Nutt <gnutt@nuttx.org>
Date: Fri Apr 26 07:24:57 2019 -0600
Revert "sched/clock/clock_initialize.c: clock_inittime() needs to be done with CONFIG_SCHED_TICKLESS and clock_initialize should skip clock_inittime() for external RTC case since the RTC isn't ready yet."
This reverts commit 2bc709d4b9
.
Commit 2bc709d4b9
was intended to handle the case where up_timer_gettime may not start from zero case. However, this change has the side-effect of breaking every implementation of tickless mode: After this change the tickless timer structures are used before they are initialized in clock_inittime(). Initialization happens later when up_initialize is called() when arm_timer_initialize().
Since the tickless mode timer is very special, one solution might be to
1. Rename xxx_timer_initialize to up_timer_initialize
2 Move up_timer_initialize to include/nuttx/arch.h
3. Call it from clock subsystem instead up_initialize
Basically, this change make timer initialization almost same as rtc initialization(up_rtc_initialize).
For now, however, we just need to revert the change.
2020-02-08 07:40:06 -06:00
Xiang Xiao
76bbed07a4
Call up_irqinitialize from irq subsystem
...
Call up_irqinitialize from irq subsystem to make the irq ready for use as soon as possible
2020-02-08 07:39:22 -06:00
Xiang Xiao
a8de37fbec
Ensure all source code end with one and only one newline
...
by this command:
git ls-files -z | while IFS= read -rd '' f; do tail -c1 < "$f" | read -r _ || echo >> "$f"; done
2020-02-08 07:25:56 -06:00
Xiang Xiao
c5b1554d84
Remove NETDEV_LOOPBACK option, NET_LOOPBACK is enough
2020-02-02 08:25:06 -06:00
Xiang Xiao
5c80b94820
Replace #include <semaphore.h> to #include <nuttx/semaphore.h>
...
Since the kernel side should call nxsem_xxx instead and remove the unused inclusion
2020-02-01 08:27:30 -06:00
Xiang Xiao
80277d1630
Refine the preprocessor conditional guard style ( #190 )
2020-01-31 19:07:39 +01:00
Xiang Xiao
68951e8d72
Remove exra whitespace from files ( #189 )
...
* Remove multiple newlines at the end of files
* Remove the whitespace from the end of lines
2020-01-31 09:24:49 -06:00
YAMAMOTO Takashi
2983fcdeb7
Fix an inverted logic in the following commit.
...
commit 39bd9ff670
Author: YAMAMOTO Takashi <yamamoto@midokura.com>
Date: Wed Jan 29 00:17:05 2020 +0900
sim: Prefix symbols with _ for non-ELF
Namely for Mach-O. Leave __CYGWIN__ case as it is.
2020-01-29 10:02:39 -08:00
YAMAMOTO Takashi
4174c818df
sim: Don't bother to remove nuttx.rel after consuming
...
We usually don't remove input files like $OBJS.
2020-01-29 09:03:48 +01:00
YAMAMOTO Takashi
b5573c5b51
sim: Fix nuttx.rel for macOS
...
* ld doesn't have --start-groupi/--end-group things. As far as I know,
it works that way by default.
* objcopy with Mach-O support is not widely available.
(GNU binutils seem to claim the support but it didn't actually work
for me. llvm-objcopy --redefine-syms explicitly rejects Mach-O.)
Instead, use -unexported_symbols_list linker flag to hide symbols
to avoid conflicts with host symbols.
2020-01-29 09:03:48 +01:00
YAMAMOTO Takashi
298c2e5e4f
sim: Fix stack alignment
...
The recent x86-64 convention requires 16-byte alignment before
(not after) calling a function.
This fixes snprintf crash I observed on macOS while saving XMM registers.
2020-01-29 09:03:48 +01:00
YAMAMOTO Takashi
39bd9ff670
sim: Prefix symbols with _ for non-ELF
...
Namely for Mach-O. Leave __CYGWIN__ case as it is.
2020-01-29 09:03:48 +01:00
YAMAMOTO Takashi
69a8b9721c
sim: Check __ELF__ for .type/.size directives
...
Mach-O assembler doesn't have them either.
2020-01-29 09:03:48 +01:00
chao.an
4d74aa6ec9
sim/netdev: dependens on LPWORK by default
...
Change-Id: Ic2d42d29fc84bef1cc279ef443897d5191888e72
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-01-21 14:17:24 +08:00
chao.an
1ff410957f
sim/net: do not do any critical operations in idle
...
Change-Id: Ia9011b62ea61d15bd66aa063e4165d9d3baacb51
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-01-16 11:01:47 -06:00
chao.an
5c5b4cc3c9
fix warning: passing argument 4 of up_x11initialize from incompatible pointer type
...
Change-Id: I8fbb506d104dd6a0c41c86ca977e28097694910b
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-01-14 18:30:48 -06:00
patacongo
f00569816f
Fix a few errors concerning use of section block comments in .c files: ( #95 )
...
1. No .c file should include a "Public Types" section. Only a header file can define a public type. A .c file can only define a private type. Several files contained private type definitions. The section that they were defined in, however, was incorrectly named "Public Types." Those were easilty changed to "Private Types" which is what they are.
2. No .c file should include a "Public Function Prototypes" section. All global function prototypes should be provided via a header file and never declared with a .c file.
For No. 2, I corrected as many cases as was reasonable for the time that I had available. But there are still a dozen or so .c files that declare "Public Function Prototypes" within a .c file. This is bad programming style. These declarations should all be moved to the proper header files.
2020-01-14 00:37:54 +01:00
Xiang Xiao
6a3c2aded6
Fix wait loop and void cast ( #24 )
...
* Simplify EINTR/ECANCEL error handling
1. Add semaphore uninterruptible wait function
2 .Replace semaphore wait loop with a single uninterruptible wait
3. Replace all sem_xxx to nxsem_xxx
* Unify the void cast usage
1. Remove void cast for function because many place ignore the returned value witout cast
2. Replace void cast for variable with UNUSED macro
2020-01-02 10:54:43 -06:00
Xiang Xiao
87cf5c58ae
Correct some problems with network timed events when there are multiple network devices in the configuration.
...
Squashed commit of the following:
Author: Gregory Nutt <gnutt@nuttx.org>
Ran nxstyle against many of the affected files. But this job was too big for today. Many of the network drivers under arch are highly non-compiant and generate many, many faults from nxstyle. Those will have to be visited again another day.
Author: Xiang Xiao <xiaoxiang@xiaomi.com>
This effects all network drivers as well as timing related portions of net/: devif_poll_tcp_timer shouldn't be skipped in the multiple card case. devif_timer will be called multiple time in one period if the multiple card exist, the elapsed time calculated for the first callback is right, but the flowing callback in the same period is wrong(very short) because the global variable g_polltimer is used in the calculation. So let's pass the delay time to devif_timer and remove g_polltimer.
2019-12-24 10:37:30 -06:00
Xiang Xiao
68b0ba88af
arch/sim/src/sim/up_framebuffer.c: Replace all _info/_err with ginfo/gerr.
2019-12-16 09:03:05 -06:00
Xiang Xiao
3a5e2b7ce7
arch/sim/src/: Simulator restore the console even error handler call host exit directly.
2019-12-16 09:01:25 -06:00
Xiang Xiao
6c362c8521
arch/sim/src/sim/: Remove unnecessary initialization log from simulator initialization.
2019-12-16 08:59:28 -06:00
Gregory Nutt
a4a23ef584
arch/sim/src/sim/up_hostfs.c, fs/hostfs/hostfs_rpmsg.c, include/nuttx/fs/hostfs.h: Sync nuttx_stat_s consistent with standard struct. Standard struct stat layout changed with commit ea577f1ddd31b3f67405cbb2a57806c47dd4dd63.
2019-12-13 08:35:00 -06:00
chao.an
b7e8670af1
arch/sim/ and boards/sim/sim/sim: Support OpenAMP between two simulator instances. Please read rpserver/rpproxy section in boards/sim/sim/sim/README.txt for more information.
2019-11-12 08:03:38 -06:00
Xiang Xiao
48de68c474
arch/sim/src/sim/up_hostfs.c: Fix warning: 'mapflags' may be used uninitialized in this function.
2019-11-11 09:01:51 -06:00
Xiang Xiao
5a3d9c7570
arch/sim/src/Makefile: Move all SMP stuff into one place for arch/sim.
2019-11-10 20:42:00 -06:00
Xiang Xiao
a4ce23518e
arch/sim/src/sim: Replace all CONFIG_DEV_CONSOLE with USE_DEVCONSOLE for arch/sim and compile up_devconsole.c conditionally.
2019-11-10 20:40:38 -06:00
Xiang Xiao
db8a7ab39c
arch/sim/src/sim/up_simuart.c: Remove CONFIG_SIM_UART_DATAPOST for arch/sim. It's very dangerous to call NuttX API from simuart_thread.
2019-11-10 20:38:25 -06:00
chao.an
f2428edd7d
arch/sim/src/nuttx-names.dat: Add host ftruncate() support.
2019-11-09 10:07:07 -06:00
Matias Nitsche
e118d99bf5
drivers/power/pm: Historically, the NuttX PM subsystem has consisted of two functional components: (1) an "Upper" part that detects state changes based on a random walk driven by activity levels, and (2) and "lower" part that implementst the state changes.
...
This change decouples that upper activity-based logic from the lower random walk logic and allows use of other upper state detection logic (such as a custom, application-specific state machine).
2019-11-09 09:09:33 -06:00
Gregory Nutt
3e8366775f
Run tools/nxstyle against some files.
2019-11-05 19:39:36 -06:00
Xiang Xiao
800e12fc42
arch/: Add rpmsg_serialini() call to every implementation of up_initialize() for rpmsg uart initialization.
2019-11-04 08:11:50 -06:00
Matias Nitsche
bca21c107f
arch/sim/src/sim/up_idle.c: Report activity on simulated UART.
2019-10-24 08:15:29 -06:00
Matias N
ddbb38ac91
arch/sim/src/Makefile: Fixes missing recursion into sim board directory for dependency generation.
2019-10-24 08:10:55 -06:00
Matias N
7135abbd2c
arch/sim/src/sim: Fixes compilation for sim target when enabling power management.
2019-10-22 07:30:33 -06:00
Matias N
5d5b861568
arch/sim/src/sim/up_tickless.c: Correct the calculation of the timer period. Fix some missing initialization of globals and missing return values.
2019-10-20 17:11:28 -06:00
Xiang Xiao
9f0502f8ba
arch/sim/src/sim/up_hostfs.c: hostfs skip '.' and '..' in readdir'
2019-10-07 21:43:59 -06:00
Xiang Xiao
3bc62f1ccc
Change space to tab and help to ---help--- in Kconfig files.
2019-10-05 21:39:12 -06:00
ligd
9924e88d1e
arch/sim: Add stack color feature for ps command.
2019-09-28 10:46:12 -06:00
Juha Niskanen
c3d24571fb
Fix some typos. Mostly inital->initial.
2019-09-27 06:32:32 -06:00
Gregory Nutt
9bd850295e
arch/sim/src/Makefile: Fix dependency problem due to reorganization of some directories.
2019-08-26 17:31:29 -06:00
Nathan Hartman
be5a40c656
Fix typos in comments.
2019-08-21 09:32:59 -06:00
Gregory Nutt
240926c995
Beginning to update comments to reflect new organization of the boards/ sub-directory.
2019-08-08 08:46:54 -06:00
Gregory Nutt
eaaa73198b
boards/Board.mk: Correct a simulator included path problem introduced by reorganization of arch/sim/src.
2019-08-08 07:17:43 -06:00
Gregory Nutt
c840ac2496
arch/sim: Even though the simulation has no chips, it needs to have CONFIG_ARCH_CHIP and chip sub-directories. Otherwise, we would have to treat it as a special case in the build system.
2019-08-07 16:05:00 -06:00
Alin Jerpelea
a1c991d921
Merged in alinjerpelea/nuttx (pull request #963 )
...
Move boards to boards folder
* boards: rename configs folder to boards
This is the proposed layout after the change:
boards: - folder containing board folders
<board>: - name of each board
drivers: - extra drivers specific for platform
include: - header files for the boars
scripts: - extra scripts specific for platform
src: - board specific code
tools: - extra tools specific for platform
<config>: - board specific configuration(s)
Note:
<xxx> names are dependent on platform
This is a logical change to aim to the arch layout but this is a
huge change it should be done in several steps to lower the risk.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* Kconfig: replace configs with boards
The change is needed after the path change
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* Makefile: replace configs with boards
The change is needed after the path change
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* Makefile.*: replace configs with boards
The change is needed after the path change
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* Make.defs: replace configs with boards
The change is needed after the path change
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* .sh: replace configs with boards
The change is needed after the path change
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* .mk: replace configs with boards
The change is needed after the path change
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* .c & .h: replace configs with boards
The change is needed after the path change
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* .bat: replace configs with boards
The change is needed after the path change
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-08-05 12:04:14 +00:00
Nathan Hartman
68d43d3679
Fix typos.
2019-08-04 14:50:28 -06:00
Nathan Hartman
32e9ba7604
Documenation/, configs/: ix typos and one HTML syntax error. Fix HTML syntax error in Documentation/NfsHowto.html: <coce> -> <code> html tag.
2019-07-30 16:10:15 -06:00
Gregory Nutt
eef2f4599e
Commit 933e9e407b
broke the simulator on a 64-bit platform.
2019-07-29 14:34:29 -06:00
Gregory Nutt
b49be4bb20
Squashed commit of the following:
...
arch/: Removed all references to CONFIG_DISABLE_POLL. The standard POSIX poll() can not longer be disabled.
sched/ audio/ crypto/: Removed all references to CONFIG_DISABLE_POLL. The standard POSIX poll() can not longer be disabled.
Documentation/: Removed all references to CONFIG_DISABLE_POLL. The standard POSIX poll() can not longer be disabled.
fs/: Removed all references to CONFIG_DISABLE_POLL. The standard POSIX poll() can not longer be disabled.
graphics/: Removed all references to CONFIG_DISABLE_POLL. The standard POSIX poll() can not longer be disabled.
net/: Removed all references to CONFIG_DISABLE_POLL. The standard POSIX poll() can not longer be disabled.
drivers/: Removed all references to CONFIG_DISABLE_POLL. The standard POSIX poll() can not longer be disabled.
include/, syscall/, wireless/: Removed all references to CONFIG_DISABLE_POLL. The standard POSIX poll() can not longer be disabled.
configs/: Remove all references to CONFIG_DISABLE_POLL. Standard POSIX poll can no longer be disabled.
2019-05-21 18:57:54 -06:00
Gregory Nutt
2c2729521b
Abandon attempt to get common data structures for NX and the raw framebuffer cursor interface. This backs out several changes.
2019-04-07 18:00:40 -06:00
Gregory Nutt
04b723e447
Squashed commit of the following:
...
include/nuttx/nx/nxcursor.h: Add a header file descrbing the implementation of an NX cursor interface. There is no implementation in place yet.
include/nuttx/video/cursor.h: Separate out cursor definitions from fb.h. Other graphic interfaces other than a framebuffer may support a cursor, possible a software cursor.
2019-04-06 12:18:05 -06:00
Gregory Nutt
9acb652e29
Rename sched_timer_expiration to nxsched_timer_expiration. That is the appropriate name for an internal sched/ function (still many named incorrectly).
2019-03-20 19:31:43 -06:00
Gregory Nutt
b290160b3b
Rename sched_process_timer to nxsched_process_timer. That is the appropriate name for an internal sched/ function (still many named incorrectly).
2019-03-20 19:27:40 -06:00
Gregory Nutt
a64869aa67
CONFIG_NFILE_DESCRIPTORS=0 can no longer be used to disable the file system. NuttX with no file system does not make sense.
...
Squashed commit of the following:
configs/: The few configurations that formerly set CONFIG_NFILE_DESCRIPTORS=0 should not default, rather they should set the number of descriptors to 3.
fs/: Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
tools/: Tools updates for changes to usage of CONFIG_NFILE_DESCRIPTORS.
syscall/: Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
libs/: Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
include/: Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
drivers/: Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
Documentation/: Remove all references to CONFIG_NFILE_DESCRIPTORS == 0
binfmt/: Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
arch/: Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
net/: Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
sched/: Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
sched/Kconfig: CONFIG_NFILE_DESCRIPTORS may no longer to set to a value less than 3
configs/: Remove all settings for CONFIG_NFILE_DESCRIPTORS < 3
2019-02-11 12:09:26 -06:00
Gregory Nutt
a2e62f557d
Squashed commit of the following:
...
sched/init/nx_bringup.c: Fix a naming collision.
sched/init: Rename os_start() to nx_start()
sched/init: Rename os_smp* to nx_smp*
sched/init: Rename os_bringup to nx_bringup
sched/init: rename all internal static functions to begin with nx_ vs os_
2019-02-04 16:20:35 -06:00
Gregory Nutt
bb623d1e04
This commit renames all internal OS functions defined under sched/task so that they begin with the prefix. For example, nxtask_exit() vs. task_exit().
...
Squashed commit of the following:
Trivial, cosmetic
sched/, arch/, and include: Rename task_vforkstart() as nxtask_vforkstart()
sched/, arch/, and include: Rename task_vforkabort() as nxtask_vforkabort()
sched/, arch/, and include: Rename task_vforksetup() as nxtask_vfork_setup()
sched/: Rename notify_cancellation() as nxnotify_cancellation()
sched/: Rename task_recover() to nxtask_recover()
sched/task, sched/pthread/, Documentation/: Rename task_argsetup() and task_terminate() to nxtask_argsetup() and nxtask_terminate(), respectively.
sched/task: Rename task_schedsetup() to nxtask_schedsetup()
sched/ (plus some binfmt/, include/, and arch/): Rename task_start() and task_starthook() to nxtask_start() and nxtask_starthook().
arch/ and sched/: Rename task_exit() and task_exithook() to nxtask_exit() and nxtask_exithook(), respectively.
sched/task: Rename all internal, static, functions to begin with the nx prefix.
2019-02-04 13:42:51 -06:00
Gregory Nutt
865cc85dfd
sched/sched/sched_critmonitor.c: A correct a logic error. arch/sim/src/up_critmon.c: Use higher resolution timer.
2018-11-25 09:49:21 -06:00
Gregory Nutt
0af39e1493
arch/: Update all _exit() implementations for all architectures so that they correctly called the scheduler instumentation layer for the new task that runs when the old one exits. This missing instrumentation was confusing the Critical Section Monitor logic with uses this instrumentation to track the state of critical sections.
2018-11-24 18:20:57 -06:00
Gregory Nutt
095b597d34
sched/sched and fs/procfs: Fix some bus in critical section monitor found in testing
2018-11-24 17:58:35 -06:00
Gregory Nutt
807d5bb4ae
Critical Section Monitor: Add low level timer support for simulation. Fix serial bugs and logic errors in initial implementation. Still does not work; takes assertions.
2018-11-24 15:07:12 -06:00
Xiang Xiao
f71cd2678a
arch/sim/src/up_netdriver.c: Fix error 'invalid operands to binary &'
2018-11-10 14:00:13 -06:00
Xiang Xiao
28abd336da
arch/sim/src/up_hostfs.c: Support S_IFSOCK, DT_LNK, O_DIRECT and O_SYNC
2018-11-09 09:13:55 -06:00
Gregory Nutt
9bc951a335
Rename devif_loopback_out to devi_loopback
2018-08-25 08:33:21 -06:00
Xiang Xiao
c0bacb7d89
arch/sim/src/up_netdriver.c: (1) Remove up_comparemac() check for matching MAC address. Let's trust that the tap device just return the packet which belong to us like other real network device hardware. (2) Add network device statistics support.
2018-08-24 14:23:50 -06:00
Xiang Xiao
0074afa0ac
net/netdev: add devif_loopback_out() to check the loopback case where a packet is being sent to itself. Modify the net driver to call this function in this case. This function will simply re-inject the packet back into the network and the network driver will not put anything on the wire.
2018-08-24 09:21:33 -06:00
Xiang Xiao
e1202d2ed3
Replace all ASSERT with DEBUGASSERT to save the code space
2018-08-24 06:58:30 -06:00
Xiang Xiao
467d2a58ea
Replace non critical PANIC with DEBUGPANIC to save the code space
2018-08-24 06:21:15 -06:00
xuanlin
2c93467436
pthreads: Add support static pthread stack. Add standard pthread_attr_setstack() and pthread_attr_getstack(). In all cases where the stack is released, add check to see which allocator must be used to free the stack: The user or the kernel allocator.
2018-08-23 09:49:20 -06:00
Xiang Xiao
c43b3e5a34
fs/hostfs: Add ftruncate support.
2018-08-22 06:08:34 -06:00
Alan Carvalho de Assis
283b73edc5
Fix lots of typos in C comments and Kconfig help text
2018-07-08 18:24:45 -06:00
Gregory Nutt
22cd0d47fa
This commit attempts remove some long standard confusion in naming and some actual problems that result from the naming confusion. The basic problem is the standard MTU does not include the size of the Ethernet header. For clarity, I changed the naming of most things called MTU to PKTSIZE. For example, CONFIG_NET_ETH_MTU is now CONFIG_NET_ETH_PKTSIZE.
...
This makes the user interface a little hostile. People thing of an MTU of 1500 bytes, but the corresponding packet is really 1514 bytes (including the 14 byte Ethernet header). A more friendly solution would configure the MTU (as before), but then derive the packet buffer size by adding the MAC header length. Instead, we define the packet buffer size then derive the MTU.
The MTU is not common currency in networking. On the wire, the only real issue is the MSS which is derived from MTU by subtracting the IP header and TCP header sizes (for the case of TCP). Now it is derived for the PKTSIZE by subtracting the IP header, the TCP header, and the MAC header sizes. So we should be all good and without the recurring 14 byte error in MTU's and MSS's.
Squashed commit of the following:
Trivial update to fix some spacing issues.
net/: Rename several macros containing _MTU to _PKTSIZE.
net/: Rename CONFIG_NET_SLIP_MTU to CONFIG_NET_SLIP_PKTSIZE and similarly for CONFIG_NET_TUN_MTU. These are not the MTU which does not include the size of the link layer header. These are the full size of the packet buffer memory (minus any GUARD bytes).
net/: Rename CONFIG_NET_6LOWPAN_MTU to CONFIG_NET_6LOWPAN_PKTSIZE and similarly for CONFIG_NET_TUN_MTU. These are not the MTU which does not include the size of the link layer header. These are the full size of the packet buffer memory (minus any GUARD bytes).
net/: Rename CONFIG_NET_ETH_MTU to CONFIG_NET_ETH_PKTSIZE. This is not the MTU which does not include the size of the link layer header. This is the full size of the packet buffer memory (minus any GUARD bytes).
net/: Rename the file d_mtu in the network driver structure to d_pktsize. That value saved there is not the MTU. The packetsize is the memory large enough to hold the maximum packet PLUS the size of the link layer header. The MTU does not include the link layer header.
2018-07-04 14:10:40 -06:00
Gregory Nutt
c65e1aa3df
Squashed commit of the following:
...
syscalls/: Add syscall support for if_nametoindex() and if_indextoname()
net/: Update some comments.
2018-06-25 12:41:28 -06:00
Gregory Nutt
8fdbb1e0a4
Elimate use of the non-standard type systime_t and replace it the equivalent, standard type clock_t
...
Squashed commit of the following:
sched: Rename all use of system_t to clock_t.
syscall: Rename all use of system_t to clock_t.
net: Rename all use of system_t to clock_t.
libs: Rename all use of system_t to clock_t.
fs: Rename all use of system_t to clock_t.
drivers: Rename all use of system_t to clock_t.
arch: Rename all use of system_t to clock_t.
include: Remove definition of systime_t; rename all use of system_t to clock_t.
2018-06-16 12:16:13 -06:00
Gregory Nutt
de119e8589
Various fixes necessary to build the simulator under MSYS.
2018-05-31 13:25:04 -06:00
Gregory Nutt
f2a89813f2
Build system: Remove fixed lib/ subdirectory and its content. Replace with new directory called staging/ that is created dynamically when building and removed when 'make clean' is done. This both improves the name and eliminates a garbage directory from the repository.
2018-05-29 11:36:21 -06:00
Dmitriy Linikov
a8c58607e9
Merged in hardlulz/modem-3.0-nuttx/fix-sem-EINTR (pull request #603 )
...
Added ECANCELED condition to DEBUGASSERT-s checking sem_wait result
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-02-20 18:24:53 +00:00
Gregory Nutt
1e59d9dd14
armv7-a, armv7-r, armv7-m: Add atomic read-add-write and read-subtract-write functions.
2018-02-04 12:22:03 -06:00
Gregory Nutt
2683f713ab
Make sure that labeling is used consistently in all function headers (part 3).
2018-02-01 12:17:03 -06:00
Gregory Nutt
7cf88d7dbd
Make sure that labeling is used consistently in all function headers.
2018-02-01 10:00:02 -06:00
Gregory Nutt
9568600ab1
Squashed commit of the following:
...
This commit backs out most of commit b4747286b1
. That change was added because sem_wait() would sometimes cause cancellation points inappropriated. But with these recent changes, nxsem_wait() is used instead and it is not a cancellation point.
In the OS, all calls to sem_wait() changed to nxsem_wait(). nxsem_wait() does not return errors via errno so each place where nxsem_wait() is now called must not examine the errno variable.
In all OS functions (not libraries), change sem_wait() to nxsem_wait(). This will prevent the OS from creating bogus cancellation points and from modifying the per-task errno variable.
sched/semaphore: Add the function nxsem_wait(). This is a new internal OS interface. It is functionally equivalent to sem_wait() except that (1) it is not a cancellation point, and (2) it does not set the per-thread errno value on return.
2017-10-04 15:22:27 -06:00
Gregory Nutt
42a0796615
Squashed commit of the following:
...
sched/semaphore: Add nxsem_post() which is identical to sem_post() except that it never modifies the errno variable. Changed all references to sem_post in the OS to nxsem_post().
sched/semaphore: Add nxsem_destroy() which is identical to sem_destroy() except that it never modifies the errno variable. Changed all references to sem_destroy() in the OS to nxsem_destroy().
libc/semaphore and sched/semaphore: Add nxsem_getprotocol() and nxsem_setprotocola which are identical to sem_getprotocol() and set_setprotocol() except that they never modifies the errno variable. Changed all references to sem_setprotocol in the OS to nxsem_setprotocol(). sem_getprotocol() was not used in the OS
2017-10-03 15:35:24 -06:00
Gregory Nutt
83cdb0c552
Squashed commit of the following:
...
libc/semaphore: Add nxsem_getvalue() which is identical to sem_getvalue() except that it never modifies the errno variable. Changed all references to sem_getvalue in the OS to nxsem_getvalue().
sched/semaphore: Rename all internal private functions from sem_xyz to nxsem_xyz. The sem_ prefix is (will be) reserved only for the application semaphore interfaces.
libc/semaphore: Add nxsem_init() which is identical to sem_init() except that it never modifies the errno variable. Changed all references to sem_init in the OS to nxsem_init().
sched/semaphore: Rename sem_tickwait() to nxsem_tickwait() so that it is clear this is an internal OS function.
sched/semaphoate: Rename sem_reset() to nxsem_reset() so that it is clear this is an internal OS function.
2017-10-03 12:52:31 -06:00
Gregory Nutt
c11345ad4b
Squashed commit of the following:
...
STM32, STM32 F7: LTDC and DMA2D drivers are not permitted to set the errno.
SIM LPC31xx: Serial and console drivers are not permitted to set the errno.
SAMv7, STM32, STM32 L4: DAC and ADC drivers are not permitted to set the errno.
2017-09-30 11:51:37 -06:00
Gregory Nutt
107866c00e
sim/configs/fb: Add a configuration for non-graphical testing of the frambuffer character driver using apps/example/fb
...
drivers/video/fb.c and include/nuttx/video.fb.h: Some improvements and fixes from early testing sith the sim/fb cnofiguration.
2017-09-12 09:48:47 -06:00
Jussi Kivilinna
7fe3625382
Simulation: Fix building 32-bit simulation on 32-bit X86
2017-09-04 07:56:51 -06:00
Gregory Nutt
f43f372823
Update some comments.
2017-08-26 11:50:41 -06:00
Nickolay Semyonov (RPI)
1fcc7ec38e
Ommitted a file in previous commit
2017-08-26 11:45:08 -06:00
Gregory Nutt
48c27f8ffc
Simulator: Adds necessary functionality to build Simulator under ARM Linux. Tested only on Raspberry3. Currently setjmp/longjmp do not save/restore floating point registers. Patch provided by Bitbucket user nbkolchin.
2017-08-26 11:38:44 -06:00
Gregory Nutt
4cc13f8d94
Simulator: x86 stack needs to be aligned to 16-byte boundaries.
2017-08-04 07:03:39 -06:00
Gregory Nutt
59b9983d97
Simulator: Protect a few more NuttX symbols from collisions with host symbols.
2017-07-31 15:41:31 -06:00
Simon Piriou
2e7961cc55
sim arch: fix mkdir issue in GNU target
2017-07-22 09:01:24 -06:00
Simon Piriou
53a8cb734b
sim arch: poll for TX frames to speed up driver
2017-07-22 09:01:24 -06:00
Simon Piriou
63c9f1a86e
sim arch: Add non blocking read to devconsole driver
2017-07-22 09:01:24 -06:00
Gregory Nutt
975473fed8
ICMPv6: Add 6LoWPAN and IP forwarding support.
2017-07-09 11:35:26 -06:00
Gregory Nutt
1c5ec07414
arch/: Remove dangling space at the end of lines.
2017-06-28 13:16:48 -06:00
Gregory Nutt
0de294a586
Fix lots of occurrences of 'the the', 'the there', 'the these', 'the then', 'the they.
2017-05-11 13:35:56 -06:00
Gregory Nutt
2043e1a114
IOBs: Move from driver/iob to a better location in mm/iob
2017-05-09 07:35:30 -06:00
Gregory Nutt
e9a5477506
Add an instance argument to the SPIDEV definitions.
2017-04-29 12:26:52 -06:00
Sebastien Lorquet
c70d797229
misc archs
2017-04-28 18:24:06 +02:00
Gregory Nutt
79256573e1
net: network drver now retains Ethernet MAC address in a union so that other link layer addresses may be used in a MULTILINK environment.
2017-04-22 11:10:30 -06:00
Gregory Nutt
bfb93338f6
Move net/iob to drivers/iob so that the I/O buffering feature can be available to other drivers when networking is disabled.
2017-04-20 16:08:49 -06:00
Gregory Nutt
547f6c7cc3
SIM: Fix some bad naming changes associated with the simulated touchscreen.
2017-04-20 07:51:27 -06:00
Gregory Nutt
fe722e44b9
6loWPAN: Fix a faulty assumption about relationship between some sizes and offsets.
2017-04-08 08:14:42 -06:00
Gregory Nutt
1b6630ee75
6loWPAN: Fix compile errors and warnings when building the complete 6loWPAN configuration.
2017-04-02 17:46:22 -06:00
Gregory Nutt
ded155c638
Fixes for coding standard: '*' needs to 'snuggle' with following variable name
2017-02-28 18:22:58 -06:00
Gregory Nutt
b4695c5ee9
hostfs: Add support for fstat().
2017-02-14 09:54:08 -06:00
Gregory Nutt
40f8e8b41f
Fix some backward DEBUGASSERT tests in ROMFS and FAT.
2017-02-13 14:06:39 -06:00
Gregory Nutt
e6558df4ad
SIM: Add readlink and setvbuf to nuttx-names.dat
2017-02-09 08:31:00 -06:00
Gregory Nutt
62a1f6f110
up_timer_initialize() is named incorrectly. The prefix should be the architecture name, not up_ since it is private to the architecture. up_timerisr() is similarly misnamed and should also be private since it is used only with the xyz_timerisr.c files. Also updat TODO list.
2017-02-07 10:35:04 -06:00
Gregory Nutt
b39d962021
Soft links: Update Documentation, rename file, add system calls
2017-02-02 17:11:08 -06:00
Gregory Nutt
b656e371d3
ELF: Move sim and x86 ARM versions of ELF relocation logic to libc/machine
2017-01-21 15:40:51 -06:00
Gregory Nutt
34be3e7c3c
Add configuration support for builds with Ubuntu under Windows 10
2017-01-01 15:34:23 -06:00
Gregory Nutt
49fae0ac6b
Revert "All CMP platforms: Apply same fix verified on other platforms found on Xtensa."
...
This reverts commit fb146abee0
.
2016-12-25 07:08:44 -06:00
Gregory Nutt
efb86382c3
SMP: Back out deferred IRQ locking. This was accidentally merged into master and it looks like it is going to be more work than I thought to get it working again. Changes will go to the irqlock branch.
2016-12-24 19:53:37 -06:00
Gregory Nutt
9f7ba21f8a
Implement deferred IRQ locking. Adds support for simulator.
2016-12-23 11:28:43 -06:00
Gregory Nutt
fb146abee0
All CMP platforms: Apply same fix verified on other platforms found on Xtensa.
2016-12-21 14:04:09 -06:00
Gregory Nutt
018db84567
Flesh out more cancellation point logic.
2016-12-09 10:31:40 -06:00
Gregory Nutt
934aded293
arch/: Adapt all Ethernet drivers to work as though CONFIG_NET_MULTIBUFFER were set. Remove all references to CONFIG_NET_MULTIBUFFER
2016-11-29 16:06:48 -06:00
Gregory Nutt
e3fe320e08
SMP: Add support for linking spinlocks into a special, non-cached memory region.
2016-11-26 08:47:03 -06:00
Gregory Nutt
f90525a5d1
SMP: Update some comments; trivial improvement by inlining static function.
2016-11-22 16:48:57 -06:00
Gregory Nutt
bac7153609
SMP: Add logic to avoid a deadlock condition when CPU1 is hung waiting for g_cpu_irqlock and CPU0 is waitin for g_cpu_paused
2016-11-22 11:34:16 -06:00
Gregory Nutt
796969f6b6
Update TODO. Provide do-nothing stubs for mutex attribute interfaces if features not enabled. pthread_cond includes a signaling semaphore and should call sem_setprotocol.
2016-11-05 11:06:52 -06:00
Gregory Nutt
0a5b4f684a
arch: Disable priority inheritance on all semaphores used for signaling in the rest of the MCU drivers
2016-11-03 17:38:26 -06:00
Paul A. Patience
912fe06a86
Add architecture-specific inttypes.h
2016-10-27 16:01:38 -04:00
Gregory Nutt
48fb97e7b5
More of the same cloned typo
2016-10-19 10:11:45 -06:00
Gregory Nutt
841e1aa77f
Fix a cloned typo
2016-10-19 09:14:21 -06:00
Gregory Nutt
300361539a
sched/sched_cpuload_oneshot: Use the oneshot timer with optional entropy to measuer cPU load if so configured.
2016-08-20 12:47:07 -06:00
Gregory Nutt
b2be0be3a6
Simulated oneshot max_delay() method should not return a failure.
2016-08-15 11:43:55 -06:00
Gregory Nutt
ab16ad7530
Fix some bugs in the oneshot driver logic
2016-08-12 14:19:11 -06:00
Gregory Nutt
046acf6b54
Add a simulated oneshot lowerhalf driver
2016-08-12 13:14:03 -06:00
Gregory Nutt
56f2454c86
Fix names of pre-processor variables used in header file idempotence
2016-08-06 18:48:45 -06:00
Gregory Nutt
d41008e220
Update some header commments
2016-08-06 18:16:31 -06:00
Gregory Nutt
f5ae207516
Changes from Review of last PR adding Tiva PWM driver
2016-08-05 07:17:42 -06:00
Gregory Nutt
3d5df2e5af
Extend I/O Expander interrupt controls; Add test of level sensitve interrupt to Simulated I/O expander
2016-08-04 16:19:52 -06:00
Gregory Nutt
1f9799b68d
I/O Expanders: Interrupt detection logic should not ignore the no-change case. Still need to handle level interrupts even with no change.
2016-08-03 13:10:20 -06:00
Gregory Nutt
803b540e8a
Fix various issues with I/O expander and GPIO lower half drivers from testing with simulated I/O expander
2016-08-03 12:46:54 -06:00
Gregory Nutt
c11473657c
SIM I/O Expander: Add logic to simulate inverted pins and to generate toggle values on interrupt input pins
2016-08-03 11:19:16 -06:00
Gregory Nutt
778a8131bf
SIM: Add a simulated I/O Expander driver
2016-08-03 09:44:48 -06:00
Gregory Nutt
b7c1544f0f
Sim build: Add sigaddset to nuttx-names.dat
2016-08-01 17:32:55 -06:00
Gregory Nutt
ee9c66186c
ramdisk.h moved from include/fs/nuttx/ to include/nuttx/drivers.
2016-07-20 14:02:18 -06:00
Gregory Nutt
4b4dbc79a2
Move driver related prototypes out of include/nuttx/fs/fs.h and into new include/drivers/drivers.h
2016-07-20 13:15:37 -06:00
Ken Pettit
b926334a19
Add file was not included in the original commit
2016-07-19 10:39:43 -06:00
Gregory Nutt
8eeecff79d
Replace some C99 comnents with C89 comments
2016-07-19 08:19:53 -06:00
Ken Pettit
148cf1ac22
Adds the simulated QSPI (N25Q) flash to the simulation and modify sim up_spiflash.c to enable it to run with different MTD drivers based on config options (currently m25p, sst26 and w25).
2016-07-19 07:33:44 -06:00
Gregory Nutt
d5388eca05
devrandom_register() must be called before devurandom_register()
2016-07-18 11:24:04 -06:00
Gregory Nutt
1660329d06
Rename up_rnginitialize to devrandom_register
2016-07-18 10:55:37 -06:00
Gregory Nutt
fe315f867a
Costmetic
2016-07-17 17:01:35 -06:00
Gregory Nutt
006f4a5818
HOSTFS: Fix some errors in first cut at repartitioning
2016-07-17 16:31:14 -06:00
Gregory Nutt
2b28a1f3e5
SIM HOSTFS: First cut at changes to get it working on Cygwin.
2016-07-17 15:59:45 -06:00
Gregory Nutt
76dc238baf
Add more name mappings to nuttx-names.dat
2016-07-17 09:44:27 -06:00
David Alessio
6cefbc0c3f
This change provides an option to add /dev/urandom to all architectures. The pseudo-random algorithm I choose strikes an arguably-good balance between being "random" and small/fast enough for 8/16 bit MCUs. It’s the well-documented xorshift128 algorithm. It has an internal state of 128 bits that can be [re-]seeded with a write.
2016-07-17 06:42:26 -06:00
Alan Carvalho de Assis
91ba0be667
Enable TERMIOS support in stm32discovery/pseudoterm configuration
2016-07-16 17:49:37 -06:00
Gregory Nutt
ba62b49190
SIM: Add more names to nuttx-namex.dat
2016-07-16 16:14:18 -06:00
Gregory Nutt
7b298a828d
up_pminitialize() needs to be called from instances of up_initialize()
2016-07-15 13:11:28 -06:00
Gregory Nutt
d3b3c71d97
All architectures: Add logic to automatically register /dev/ptmx a boot time
2016-07-15 11:54:41 -06:00
Gregory Nutt
39e7d5431f
update gitignore
2016-06-24 16:29:15 -06:00
Gregory Nutt
5118264e6c
Rename CONFIG_SYSLOG_CONSOLE to CONFIG_CONSOLE_SYSLOG
2016-06-21 09:35:51 -06:00
Gregory Nutt
485aa6b231
SIM: Comment out skip scheduler debug output that can hang the simulation.
2016-06-21 08:59:01 -06:00
Gregory Nutt
62d8f839c7
SYSLOG: Now a two phase initialization. Some SYSLOG channels cannot be initialized until later in the bringup
2016-06-21 07:52:24 -06:00
Gregory Nutt
43eb04bb8f
Without lowsyslog() *llinfo() is not useful. Eliminate and replace with *info().
2016-06-20 11:59:15 -06:00
Gregory Nutt
2b445ddccc
Remove lowsyslog(). The new syslog() includes all of the functionality of lowsyslog(). No longer any need for two interfaces.
2016-06-20 08:57:08 -06:00
Gregory Nutt
5b2aa7bf99
Remove all traces of CONFIG_SYSLOG
2016-06-19 13:59:43 -06:00
Gregory Nutt
0f18f3bd15
Move RAMLOG initialize from up_initialilize.c files to syslog_initialize(). up_initialize.c files now call syslog_initialize() unconditionally
2016-06-19 09:39:21 -06:00
Gregory Nutt
0c8c7fecf0
Add _ to the beginning of all debug macros to avoid name collisions
2016-06-16 12:33:32 -06:00
Gregory Nutt
24c51ec1ff
Centralize definitions associated with CONFIG_DEBUG_LCD
2016-06-15 11:40:33 -06:00
Gregory Nutt
ba03134bed
Centralize definitions associated with CONFIG_DEBUG_SPI
2016-06-15 10:41:13 -06:00
Gregory Nutt
dfc703f250
arch/sim/: Change some *err() message to *info() messages if what was a *dbg() message does not indicate and error condition.
2016-06-14 11:49:55 -06:00
Gregory Nutt
0f249016a0
Eliminate some warnings
2016-06-13 14:01:32 -06:00
Gregory Nutt
a1469a3e95
Add CONFIG_DEBUG_ERROR. Change names of *dbg() * *err()
2016-06-11 15:50:49 -06:00
Gregory Nutt
e99301d7c2
Rename *lldbg to *llerr
2016-06-11 14:55:27 -06:00
Gregory Nutt
1cdc746726
Rename CONFIG_DEBUG to CONFIG_DEBUG_FEATURES
2016-06-11 14:14:08 -06:00
Gregory Nutt
fc3540cffe
Replace all occurrences of vdbg with vinfo
2016-06-11 11:59:51 -06:00
Gregory Nutt
3a74a438d9
Rename CONFIG_DEBUG_VERBOSE to CONFIG_DEBUG_INFO
2016-06-11 11:50:18 -06:00
Steve
a75c48c183
Fix for a minor typo that I introduced somewhere along the way during my testing. This makes the bridge code actually compile…
2016-05-21 17:09:50 -06:00
Steve
bd3ef36eda
SUMMARY
...
-------
This patch enhances networking support for the simulation under Linux.
Includes updated support for Linux TUN/TAP, and the addition of support for
Linux bridge devices.
CHANGES
-------
o Check to see if the d_txavail callback is present before calling it in
the arp send code. This prevents a segfault when simulating the telnetd
daemon with arp send enabled.
o Adjust the simulation's netdriver_loop() so it will detect and respond to
ARP requests.
o Do not attempt to take the tap device's hardware address for use by the
simulation. That hardware address belongs to the host end of the link,
not the simulation end. Generate a randomized MAC address instead.
o Do not assign an IP address to the interface on the host side of the TAP
link.
+ Provide two modes: "host route" and "bridge".
+ In host route mode, maintain a host route that points any traffic for the
simulation's IP address to the tap device. In this mode, so long as the
simulation's IP is a free address in the same subnet as the host, no
additional configuration will be required to talk to it from the host.
Note that address changes are handled automatically if they follow the
rule of if-down/set-address/if-up, which everything seems to.
+ In bridge mode, add the tap device to the specified bridge instance. See
configs/sim/NETWORK-LINUX.txt for information and usage examples. This
enables much more flexible configurations (with fewer headaches), such as
running multiple simulations on a single host, all of which can access
the network the host is connected to.
o Refresh configurations in configs/sim where CONFIG_NET=y. They default
to "host route" mode.
o Add configs/sim/NETWORK-LINUX.txt
CAVEATS
-------
- The MAC address generation code is extremely simplistic, and does not
check for potential conflicts on the network. Probably not an issue, but
something to be aware of.
- I was careful to leave it in a state where Cygwin/pcap should still work,
but I don't have a Windows environment to test in. This should be
checked.
- I don't know if this was ever intended to work with OS X. I didn't even
try to test it there.
NOTES
-----
- Was able to get telnetd working and simulate nsh over telnet, but only so
long as listen backlogs were disabled.
There appears to be a bug in the backlog code where sockets are being
returned in SYN_RCVD state instead of waiting until they're ESTABLISHED;
if you perform an immediate send after accepting the connection, it will
confuse the stack and the send will hang; additionally, the connection
will never reach ESTABLISHED state.
Can be worked around by adding a sleep(1) after the accept in telnetd. I
don't have the necessary knowledge of the IP stack to know what the
correct fix is.
2016-05-20 17:36:14 -06:00
Gregory Nutt
fb484a581f
All GCC final arch/*/src/Makefiles: Allow --start-group and --end-group to be redefined for the case where GCC is used to link (instead of LD). Suggested by Paul Alexander Patience.
2016-05-17 10:43:15 -06:00
Gregory Nutt
a3f3cc12c0
Update some comments; Fix grammatic error in ChangeLog.
2016-05-13 17:36:08 -06:00
Gregory Nutt
faca2fb1e7
ARMv7-A/i.MX6: Add logic to handle allocation of CPU IDLE thread stacks more efficiently
2016-05-13 11:39:42 -06:00
Gregory Nutt
70782b0f14
ARMv7-A i.MX6: More SMP logic. Still untested.
2016-05-12 15:04:46 -06:00
Gregory Nutt
aa64214877
FB: Add a display number to the framebuffer planeinfo structure
2016-04-17 10:08:27 -06:00
Gregory Nutt
46846c0c24
Framebuffer driver: Add a display number to each interface in order to support multiple displays
2016-04-14 12:23:15 -06:00
Gregory Nutt
267e20c729
PM: Add domain to all PM interfaces. Internal PM data structures now handle multiple PM domains.
2016-03-27 13:01:32 -06:00
Gregory Nutt
32acc35c88
PM: Add activity domain to all PM callbacks
2016-03-27 11:18:54 -06:00
Gregory Nutt
35707e4d48
SIM: Update scheduler implementation to match prototype changes
2016-03-22 18:18:37 -06:00
Gregory Nutt
e767df5994
SIM: Add another name to the NuttX names list
2016-03-22 13:00:09 -06:00
Gregory Nutt
be5b79875f
Fix an error in the simulator version of up_unblock_task()
2016-03-21 15:20:14 -06:00
Gregory Nutt
bd846c2e72
All architectures: Register the schedule note driver if enabled
2016-03-17 17:00:59 -06:00
Gregory Nutt
82c58eb609
SIM: Register the schedule note driver if enabled
2016-03-17 14:43:29 -06:00
Gregory Nutt
8fbe5b6243
sim: Omit built-in scheduler imstrumentation if buffered instrumentation is selected.
2016-03-17 09:50:33 -06:00
Gregory Nutt
411cf0ba1f
SMP: Add per-CPU initialization logic
2016-03-13 07:16:26 -06:00
Gregory Nutt
2b2f157569
Forgot to add a file before last commit
2016-03-12 15:28:58 -06:00
Gregory Nutt
6288e381ee
Conform to revised SMP interfaces. Improve i.MX6 SMP startup handshake.
2016-03-12 15:22:45 -06:00
Gregory Nutt
a74c19bbae
SIM: Add TLS support to to the simulator
2016-03-11 14:03:27 -06:00
Gregory Nutt
c6a0f284e4
Remove comments before empty sections in C files
2016-02-21 14:19:01 -06:00
Gregory Nutt
bd0d46138c
SIM: Trivial, uninteresting change to file inclusion in IDLE loop
2016-02-20 14:56:25 -06:00
Gregory Nutt
de885064d2
SIM: Clean up some comments
2016-02-18 14:56:17 -06:00
Gregory Nutt
526c90986a
sim SMP: CPU0 should not be the main thread. That introduces an asymmetry since the main thread has no pthread_t ID. Instead, start an additional pthread for CPU0. The main thread will just wait and do nothing in this case
2016-02-18 14:54:48 -06:00
Gregory Nutt
08e2fc0be8
Can't call sdbg() from a signal handler; And another name to nuttx-names.dat
2016-02-18 12:29:37 -06:00
Gregory Nutt
3508e22f3f
SMP: Rename sim_cpupause to sim_cpu_pause for consistency with other naming
2016-02-18 11:46:08 -06:00
Gregory Nutt
3deac3d43d
SMP: Initial implementation of up_cpu_pause and up_cpu_resume. Does not yet work.
2016-02-18 11:12:43 -06:00
Gregory Nutt
e3ea40e4f9
SMP: Cosmetic renaming to clarify functionality of SMP interfaces. Update comments.
2016-02-17 13:35:23 -06:00
Gregory Nutt
063caf3a90
Add warnings and some comments
2016-02-16 16:08:59 -06:00
Gregory Nutt
8ac45d4f4d
Add some additional schedule instrumentation
2016-02-16 15:19:44 -06:00
Gregory Nutt
b4dae46fd7
SIM: Add scheduler instrumentation
2016-02-16 13:40:15 -06:00
Gregory Nutt
9234eec334
SIM: Needs to include stdint.h
2016-02-16 10:12:06 -06:00
Gregory Nutt
17cf9a57a0
Update some comments
2016-02-16 07:50:09 -06:00
Gregory Nutt
1e218415d6
Most cosmetic; fix spelling of teriminate
2016-02-16 07:24:28 -06:00
Gregory Nutt
d2f13e4b12
SIM: If SMP is enabled, show CPU on assertion
2016-02-15 13:47:05 -06:00
Gregory Nutt
e238b29ddf
SIM: Add pthread_yield to the list of name collisions
2016-02-15 11:44:53 -06:00
Gregory Nutt
83bc1c97c3
Rename irqsave() and irqrestore() to up_irq_save() and up_irq_restore()
2016-02-14 16:11:25 -06:00
Gregory Nutt
70e502adb0
Replace irqsave() with enter_critical_section(); replace irqrestore() with leave_critical_section()
2016-02-13 19:11:09 -06:00
Gregory Nutt
a884818e32
SIM: Add empty stubs for SMP function up_cpustop and up_cpustart
2016-02-12 17:12:01 -06:00
Gregory Nutt
d22aa4b588
SIM: In SMP simulation, use pthread_yield(), not up_hostusleep() to reliquish the CPU.
2016-02-12 08:13:44 -06:00
Gregory Nutt
62e6275fe5
SIM:Add missing mutex unlock; need to used up_hostusleep(), not usleep(), in up_idle
2016-02-11 17:18:28 -06:00
Gregory Nutt
e41de0a00e
SIM: Move IDLE thread initialization from sim to OS since it should be common
2016-02-11 14:10:19 -06:00
Gregory Nutt
ac6c9cf617
SIM: Add SMP idle thread setup logic -- forgot to add files before last commit.
2016-02-11 12:17:41 -06:00
Gregory Nutt
b087cb7f9a
SIM: Add SMP idle thread setup logic
2016-02-11 12:16:19 -06:00
Gregory Nutt
0dbbf19fea
SIM: Kconfig now indicates that it supports multiple CPUs.
2016-02-10 17:29:04 -06:00
Gregory Nutt
52f88b0625
SIM: Add simulation of a multi-CPU processor
2016-02-10 14:58:21 -06:00
Gregory Nutt
5e91bf9a03
SIM: Add a fake spinlock.h header file that may be useful someday for testing of SMP features
2016-02-10 10:33:37 -06:00
Gregory Nutt
a1126361da
sim: Replace explict references to g_readytorun with indirect references via the this_task() macro
2016-02-06 17:05:55 -06:00
Gregory Nutt
1166e311b0
Networking: Remove the HSEC argument from devif_timer.
2016-02-03 11:17:15 -06:00
Gregory Nutt
a9dec09444
Minor fix to comment
2016-01-27 08:16:46 -06:00
Gregory Nutt
b7cbbab761
Remove CONFIG_SPI_OWNBUS: Now it is not just a good idea, it is the law
2016-01-23 18:10:21 -06:00
Gregory Nutt
4bd6adb725
Add dummy hwfeatures method to all SPI interfaces
2016-01-23 15:09:38 -06:00
Gregory Nutt
2030784891
sim: Add more symbols to nuttx-names.dat
2016-01-14 15:14:25 -06:00
Gregory Nutt
927b1dcc1f
Initialize the telnet factory as part of the common architecture intialization
2015-12-07 11:40:29 -06:00
Gregory Nutt
3afc0799ad
Eliminate a warning
2015-12-05 10:35:11 -06:00
Gregory Nutt
e421258808
Move sim/src/up_appinit.c to configs/sim/src where it really belongs
2015-11-29 13:54:03 -06:00
Gregory Nutt
2afd4595e4
Re-think how __KERNEL__ option is set in architecture Makefiles. Should be passed in EXTRADEFINES
2015-11-26 06:59:35 -06:00
Gregory Nutt
4aa3dcb51a
__KERNEL__ should be defined when compiler architecture specific logic
2015-11-25 18:05:36 -06:00
Gregory Nutt
f4e8f84887
__KERNEL__ should be defined when compiler architecture specific logic
2015-11-25 17:52:14 -06:00
Gregory Nutt
14d7ede265
All instances of up_initialize() should call loop_register() is CONFIG_DEV_LOOP=y
2015-11-25 17:10:41 -06:00
Ken Pettit
641ca79321
arch/sim/src: Add a special file system for use with simulator that supports access to the host file system from the simulation. From Ken Petit
2015-11-25 08:36:44 -06:00
Gregory Nutt
d7c5ff98f4
Fix a typo
2015-11-23 18:55:38 +00:00
Gregory Nutt
edb1439d8f
Last change introduced warnings when CONFIG_SIM_M32=y; This fixes those warnings too
2015-11-23 12:44:59 -06:00
Gregory Nutt
9f98dfecb7
sim: Eliminate a warning
2015-11-23 11:59:33 -06:00
Ken Pettit
992d7d1e85
arch/sim/src/up_spiflash.c: Add support for W25 FLASH simulation. From Ken Petit
2015-11-18 07:08:38 -06:00
Gregory Nutt
c340185cb3
arch/sim: Fix spacing/alignment issues
2015-10-14 07:14:28 -06:00
Gregory Nutt
7a63e976ad
Remove TABs
2015-10-04 16:00:42 -06:00
Gregory Nutt
aaa697ec83
Remove dangling whitespace
2015-10-04 15:27:17 -06:00
Gregory Nutt
6fc6d17760
Fix some spacing problems
2015-10-04 14:59:08 -06:00
Gregory Nutt
cae0c9a2e3
Standardize the width of all comment boxes in header files
2015-10-02 17:47:23 -06:00
Gregory Nutt
36726b1bc4
Standardize the width of all comment boxes in header files
2015-10-02 17:42:29 -06:00
Gregory Nutt
82cc93c71b
Add some comments to a Kconfig file
2015-09-24 14:53:04 -06:00
Gregory Nutt
50b64f6991
Sim target on Cygwin64: Modern Cygwin X86_64 machines follow the Microsoft ABI for parameter passing. The older,inux System 5 ABI will not work on X86_64-based Cygwin machines. With this change, the simulator agains works with the newer Cygwin64 platform
2015-09-24 14:41:57 -06:00
Gregory Nutt
569a29a327
Simulation: Newer versions of Cygwin tools do not seem to pre-pend symbol names with underscore character
2015-09-24 09:08:52 -06:00
Gregory Nutt
26eada3446
In all up_initialize() functions, automatically initialize TUN driver is so configureded
2015-09-06 09:35:29 -06:00
Paul A. Patience
a0dc724a5d
Correct #if to #ifdef when the macro can be undefined. Fix bug in AT32UC3 clock initialization: AVR32_CLOCK_PLL_OSC1 should be AVR32_CLOCK_PLL0_OSC1 and AVR32_CLOCK_PLL1_OSC1.
2015-09-01 13:47:06 -04:00
Gregory Nutt
01cfe8c315
Networking: Move where the local loopback device is initialized from board_app_intiialize() to up_intiialize() so that it will happen automatically
2015-08-24 14:25:49 -06:00
Gregory Nutt
c9603b27c0
sim: Add logic to initialize the local loopback device is so configured
2015-08-24 13:46:05 -06:00
Gregory Nutt
0843af5367
Fixes that call sched_resume_scheduler and sched_suspend_scheduler must include nuttx/sched.h
2015-07-29 16:51:26 -06:00
Gregory Nutt
eddf8161a5
Add scheduler resume/suspend calls to all implementations of up_release_pending()
2015-07-26 10:13:29 -06:00
Gregory Nutt
37969b8279
Add scheduler resume/suspend calls to all implementations of up_reprioritize_rtr()
2015-07-26 09:46:28 -06:00
Gregory Nutt
838c5355eb
Correct resume scheduler hooks and add suspend scheduler hooks to all implementations of up_unblock_task
2015-07-26 09:07:47 -06:00
Gregory Nutt
a92c0a10ab
Add scheduler resume/suspend calls in all implementations of up_block_task()
2015-07-26 08:31:23 -06:00
Gregory Nutt
9d98177daa
Add logic to reset the replenish the sporadic scheduler when a task is resumed
2015-07-24 09:54:28 -06:00
Gregory Nutt
724c1eacaa
Add support for a BOARDIOC_RESET boardctl() command. Enable configuration options to support BOARDIOC_RESET for ARMv6-M and ARMv7-M
2015-07-04 10:39:24 -06:00
Gregory Nutt
36ddd9f691
Simulatin: Save the intial terminal mode and restore this before terminating. Otherwise, the NSH shutdown command leaves the console in raw mode
2015-07-04 08:43:10 -06:00
Gregory Nutt
749907cbbe
sim configuration: Add support for board_app_initialize() which is needed when CONFIG_LIB_BOARDCTL=y
2015-07-04 08:16:45 -06:00
Gregory Nutt
8db3a7a13e
Add a board_app_initilize() stub function needed by the simulatin when CONFIG_LIB_BOARDCTL=y
2015-07-04 07:35:14 -06:00
Gregory Nutt
37e681f89a
Implementment board_power_off() for the simulation platform.
2015-07-04 07:22:38 -06:00
Gregory Nutt
fb926e7283
Fix references to the no-longer-existent misc/ directory in comments, README files, and documentation
2015-06-28 08:08:57 -06:00
Gregory Nutt
29136e51cc
Clean up and review of header files for conformance to standards
2015-06-12 19:26:01 -06:00
Gregory Nutt
a25d0908f8
Simulator: Add more name conversons. From Max Neklyudov
2015-05-29 08:20:06 -06:00
Gregory Nutt
95c885977a
apps/examples/ostest: Add a test for the sigprocmask, sighold, and sigrelse
2015-04-09 15:53:59 -06:00
Gregory Nutt
ae15c6963c
Make some file section headers more consistent with standard
2015-04-08 08:04:12 -06:00
Gregory Nutt
fd9164a18a
More renaming: up_lcdinitialize->board_lcd_initialize, up_lcdgetdev->board_lcd_getdev, up_lcduninitialize->board_lcd_uninitialize
2015-04-04 11:49:15 -06:00
Gregory Nutt
85b18f87b0
rch_tcinitialize() and arch_tcunitinitialize() renamed to board_tsc_setup() and board_tsc_teardown(). These are not long called directly by applications but only indirectly throught the crappy boardctl() OS interface.
2015-03-31 13:21:25 -06:00
Gregory Nutt
c638c67ad4
Add umount2(). umount() is now a macro that just calls umount2() with flags = 0.
2015-03-14 16:48:45 -06:00
Gregory Nutt
a5043d5e60
Add support for dumping board-specific information on assertion. From David Sidrane
2015-03-04 07:00:29 -06:00
Gregory Nutt
f7bb64b327
Suffer the consequences of moving struct timeval to its correct location
2015-02-15 15:18:35 -06:00
Gregory Nutt
8bac6b71ce
SYSLOG: Add an option to use the syslog'ing device as the system consolution. This option enables a low-level, write-only console device at /dev/console (similar to the low-level UART console device). From Pierre-noel Bouteville.
2015-02-08 06:53:24 -06:00
Gregory Nutt
c51ebf8c72
Refresh some configurations
2015-02-01 12:15:46 -06:00
Gregory Nutt
ec6383d2d2
Fix compile issues with configs/sim/nettest
2015-02-01 12:00:30 -06:00
Gregory Nutt
5f72080e0a
SIM: fix a case in the simulated Ethernet driver where it was using a old structure name
2015-02-01 09:00:42 -06:00
Gregory Nutt
b15632e8ba
drivers/ramdisk.c and include/nuttx/fs/ramdisk.h: Add logic to dispose of the drvier and RAM buffer when the RAM disk has been unlinked and all open references to the RAM disk have been closed. Add new parameters to romdisk() to specify what should be done with the RAM/ROM buffer -- Should it be freed or not? Changed all calls to ramdisk() to use these new parameters.
2015-02-01 07:24:16 -06:00
Gregory Nutt
a2efa2fed8
Unix domain: More fixes. With these changes, apps/examples/ustream works
2015-01-28 08:39:48 -06:00
Gregory Nutt
944b34e31f
Unix domain: A few fixes from early integration
2015-01-27 16:39:30 -06:00
Gregory Nutt
af612f6fad
Unix domain: More fixed to build without Ethernet or Slip
2015-01-27 14:26:10 -06:00
Gregory Nutt
9b5fe1e446
Various fixes to get Unix domain sockets to build on the simulator without Ethernet
2015-01-27 14:11:46 -06:00
Gregory Nutt
9588b0e7a7
All Ethernet drivers (again): Missed one place where arp_out() is called and neighber_out() needs to be called
2015-01-21 11:36:33 -06:00
Gregory Nutt
723b7fc430
Networking: Modify all Ethernet drivers: Do neighbor look-up on all outgoing IPv6 packs in order to properly set the destination link layer address.
2015-01-20 15:52:25 -06:00
Gregory Nutt
f6063c3896
Networking: Add missing raw/packet socket support to all Ethernet drivers
2015-01-20 15:14:29 -06:00
Gregory Nutt
07132f462f
Ethernet drivers: Use IFF_IS_IPv4 macro. Cannot rely on the EtherType being set correctly.
2015-01-20 06:26:14 -06:00
Gregory Nutt
ac69e11a5f
Networking: All Ethernet drivers: Call ipv6_input if IPv6 is enabled and an IPv6 packet is received
2015-01-15 09:31:23 -06:00
Gregory Nutt
836a8b1625
- Rename devif_input() ipv4_input()
...
- Copy net/devif/devif_input.c to ipv6_input.c. Remove all IPv4-specific logic.
- Rename net/devif/devif_input.c to ipv4_input.c. Remove all IPv6-specific logic
- Split IPv4 header structure out as net_ipv4hdr_s from net_iphdr_s
2015-01-15 08:03:56 -06:00
Gregory Nutt
6bc54c3541
Networking: Condition certain ARP logic on CONFIG_NET_ARP in all Ethernet drivers
2015-01-15 07:07:39 -06:00
Gregory Nutt
23ac4caf5a
C5471: choice has a default value. It should not
2014-12-28 18:15:17 -06:00
Gregory Nutt
2b65239466
Various fixes to traveler joystick input logic and to simulated joystick device
2014-12-14 12:23:19 -06:00
Gregory Nutt
f16d78b52c
Mouse simulatin should receive mouse positional input even if no button is pressed
2014-12-14 11:14:13 -06:00
Gregory Nutt
82f9391763
SIM: Several fixes to the simulated joystick driver. Still buggy
2014-12-14 11:11:04 -06:00
Gregory Nutt
ca3977e91e
SIM: Add an X11 mouse-based simulation of an analog joystick device
2014-12-14 10:19:07 -06:00
Gregory Nutt
9268fcc8ba
Include sched.h to avoid warning
2014-12-14 07:46:46 -06:00
Gregory Nutt
cf1caa48ce
SIM: Fix simulated console... it needs to return immediately when even one byte is read
2014-12-13 13:04:02 -06:00
Gregory Nutt
639400e599
Allow building simulated framebuffer dirver is NX is not enabled
2014-12-08 08:29:48 -06:00
Gregory Nutt
2330c9c842
Rename CONFIG_NET_BUFSIZE to CONFIG_NET_ETH_MTU is all MCU Ethernet drivers
2014-11-16 08:10:06 -06:00
Gregory Nutt
f4e947ee80
Remove use of NET_LL_HDRLEN from Ethernet drivers. Use ETH_HDRLEN instead
2014-11-15 09:05:34 -06:00
Gregory Nutt
bf984b2b3a
Netwoek: Ada a parameter to netdev_register() to indicate the link protocol supported by the driver. Use this value to replace some logic commited yesterday
2014-11-15 08:22:51 -06:00
Gregory Nutt
ee020e8b06
Merge remote-tracking branch 'origin/master' into bas24
2014-11-02 12:11:45 -06:00
Gregory Nutt
28a74ac02f
MM: Minimum memory allocation must to up to 32 if sizeof pointer is 8-bytes
2014-11-02 12:11:20 -06:00
Gregory Nutt
f988838d40
SIM: Add more symbols to /arch/sim/src/nuttx-names.dat
2014-11-02 11:44:09 -06:00
Gregory Nutt
84d555c1be
Oops... accidentally checked in a debug-only change with the last commit
2014-11-02 08:03:34 -06:00
Gregory Nutt
ed2519dce3
Can't use isatty, tcsetattr, or tcgettr is CONFIG_SERIAL_CONSOLE is not defined
2014-11-02 07:59:56 -06:00
Gregory Nutt
db9901e2f9
Update everything under nuttx/arch to use the corrected syslog interfaces
2014-10-08 12:48:47 -06:00
Gregory Nutt
48c76840a9
configs/sim/nsh/defconfig -- refresh, enable wall-time, dow builds natively in 64-bit mode
2014-10-03 08:44:42 -06:00
Gregory Nutt
31049a203c
Add support for 64-bit lonjmp/setjmp in simulator platform
2014-10-03 08:23:57 -06:00
Gregory Nutt
6e86d87ba5
Simulation: Change how simulated UART data availability is signaled. The last change is not safe (but I don't like this workaround either -- maybe something better will come to me).
2014-10-01 14:59:51 -06:00
Gregory Nutt
e1aa0b039f
Mostly cosmetic changes to simulator
2014-10-01 08:40:52 -06:00
Gregory Nutt
4e303a5c4a
Update some comments
2014-09-30 17:45:42 -06:00
Gregory Nutt
16712b09fe
Fix a cornercase problem in in the UART simulation
2014-09-30 15:49:30 -06:00
Gregory Nutt
56574a03da
Restore up_internal.h. Changes its name was a bad idea... at least for now
2014-09-30 14:41:58 -06:00
Gregory Nutt
24c5eb8f95
Simulated UART seems functional
2014-09-30 14:41:58 -06:00
Gregory Nutt
38a548faab
Forgot to add a file
2014-09-30 14:41:57 -06:00
Gregory Nutt
f7e857b42b
Completes simulated uart implementation... does not work
2014-09-30 14:41:57 -06:00
Gregory Nutt
18ed0123a6
simulation: Add a simulatied UART input device. Also lots of misc clean-up for stylistic compatibility with other architectures
2014-09-30 14:41:57 -06:00
Gregory Nutt
371347b144
Fix missing closing quotation mark
2014-09-19 13:00:42 -06:00
Gregory Nutt
4d73a908e5
Some compiler errors that I added to Ken's code. From Ken Pettit
2014-09-19 10:58:32 -06:00
Gregory Nutt
400d469956
Emulated SPI FLASH driver for the sim target from Ken Pettit
2014-09-19 10:27:18 -06:00
Gregory Nutt
aaf190dcf6
ELF relocations. Some relocation types do not have a named symbol associated with them. The design did not account for that case
2014-09-09 16:52:51 -06:00
Gregory Nutt
3dd3b1f5e2
The 'make export' target needs to bundle up the user C startup file (crt0), not the kernel head object
2014-09-04 13:31:34 -06:00
Gregory Nutt
02c3d38ed0
Add misc/Obsoleted/ChangeLog and misc/Obsoleted/Patches/Remove-8051-2014-9-1.patch
2014-09-01 16:21:29 -06:00
Gregory Nutt
31b8137956
There used to be two ways to pass parameters to new tasks, depending upon the configuration: Either (1) argv[] as created as an array with each string strdup'ed. Or (1) argv[] array and strings were created on the stack before the new task was started. Now, there is only one way, way (1). Way (2) might be slightly more compact, but this is not worth carry the complexity of two different ways of doing the same thing.
2014-09-01 15:39:34 -06:00
Gregory Nutt
fcd7b9336e
Rename kfree to kmm_free for consistency with other naming conventions
2014-08-31 17:04:02 -06:00
Gregory Nutt
bcb5a5316e
Rename kumalloc to kumm_malloc and kuzalloc to kumm_zalloc for consistency with other naming
2014-08-31 16:24:24 -06:00
Gregory Nutt
e6698045c1
Rename kmemalign to kmm_memalign and krealloc to kmm_realooc for consistency with other naming
2014-08-31 15:27:37 -06:00
Gregory Nutt
e11679acf8
Rename CONFIG_NUTTX_KERNEL to CONFIG_BUILD_PROTECTED; Partially integrate new CONFIG_BUILD_KERNEL
2014-08-29 14:47:22 -06:00
Gregory Nutt
2566ba7b1d
Change naming of ELF interfaces from arch_ to up_ for consistency
2014-08-25 06:47:14 -06:00
Gregory Nutt
29406c0d20
Add option to select 64-bit build platform
2014-08-22 18:21:32 -06:00
Gregory Nutt
d989807e76
uintptr_t should be 64-bits under Cygwin64
2014-08-22 15:18:55 -06:00
Gregory Nutt
5d143578b0
Fix errors in documentation and comments related to the Tickless OS. From Vijay Kumar
2014-08-09 06:41:38 -06:00
Gregory Nutt
6455f60c60
Remove os_internal.h it has been replace by several new header files under sched/. There have been some sneak inclusion paths via os_internal.h, so expect a few compilation errors for some architectures
2014-08-08 18:39:28 -06:00
Gregory Nutt
4dc151097e
Replace os_internal.h with sched/sched.h in files that actually reference something in sched.h
2014-08-08 17:53:55 -06:00
Gregory Nutt
c98ece6bec
Move task control files from sched/ to sched/task
2014-08-08 16:44:08 -06:00
Gregory Nutt
1c99d53bb1
Move clock functions from sched/ to sched/clock
2014-08-08 14:43:02 -06:00
Gregory Nutt
39183d37b8
Change all time conversions. Yech. New timer units in microseconds breaks all existing logic that used milliseconds in the conversions. Something likely got broken doing this, probably because I confused a MSEC2TICK conversion with a TICK2MSEC conversion. Also, the tickless OS no appears fully functional and passes the OS test on the simulator with no errors
2014-08-07 18:00:38 -06:00
Gregory Nutt
f140e112e0
Implements the tickless OS
2014-08-07 11:39:16 -06:00
Gregory Nutt
c275ebef35
Add support for a simulated interval timer support verification of the tickless OS.
2014-08-06 18:29:29 -06:00
Gregory Nutt
595ec296fb
Don't build in sched_processtimer.c if CONFIG_SCHED_TICKLESS is selected.
2014-08-06 18:27:10 -06:00
Gregory Nutt
94afad9b70
if CONFIG_SCHED_TICKLESS is defined, then the global variable g_system_timer does not exist
2014-08-06 18:26:16 -06:00
Gregory Nutt
8bbbc5b255
Cosmetic changes to comments
2014-07-29 07:17:01 -06:00
Gregory Nutt
87055cff08
NET: Standardize naming of all protocal header lengths
2014-07-05 13:04:48 -06:00
Gregory Nutt
d7fe256821
NET: emoved all includes of uip.h; added includes of ip.h wherever needed. Tried to fix problems of the now missing sneak inclusions because uip.h was removed. There are probably a few of these that were missed.
2014-07-04 19:13:08 -06:00
Gregory Nutt
99ce3a44d7
Remove all inclusion of uip.h
2014-07-04 16:58:22 -06:00
Gregory Nutt
11e3a21411
NET: More renaming
2014-07-04 15:40:49 -06:00
Gregory Nutt
dfb5bc1413
NET: More renaming
2014-07-03 17:53:16 -06:00
Gregory Nutt
d3357f81f5
Rename apps/examples/uip to apps/examples/webserver
2014-07-03 17:31:17 -06:00
Gregory Nutt
313982ba18
NET: Rename XYZ_uiptxpoll to just XYZ_txpoll
2014-07-01 18:41:08 -06:00
Gregory Nutt
621ec21bfd
Rename uip_poll->devif_poll and uip_timer->devif_timer
2014-06-30 18:40:41 -06:00
Gregory Nutt
ade8807a61
Rename uip_input to devif_input
2014-06-30 18:11:17 -06:00
Gregory Nutt
e4990dda4d
Rename uip_driver_s net_driver_s
2014-06-27 16:48:12 -06:00
Gregory Nutt
57383ea2f3
Rename ip_eth_hdr to eth_hdr_s
2014-06-25 09:57:52 -06:00
Gregory Nutt
11896e1481
Move the remaining files from include/nuttx/net/uip to include/nuttx/net; Rename *_internal.h header files in net/ to just *.h
2014-06-24 10:14:15 -06:00
Gregory Nutt
b34a1f1e01
Move include/nuttx/net/uip/uip-arch.h to include/nuttx/net/netdev.h
2014-06-24 09:28:44 -06:00
Gregory Nutt
407e72b300
Move include/nuttx/net/uip/uip-arch.h to include/nuttx/net/arp.h; rename all uip_arp_ functions to arp_
2014-05-30 12:13:06 -06:00
Gregory Nutt
8dbc4714c5
Change all variadic macros to C99 style
2014-05-22 09:01:51 -06:00
Gregory Nutt
ae82fa65a6
Fix spelling, only one t in exiting
2014-04-27 15:49:38 -06:00
Gregory Nutt
25d4ff745b
More trailing whilespace removal
2014-04-13 16:22:22 -06:00
Gregory Nutt
eee82879cb
Make sure that there is one space between if and condition
2014-04-12 12:53:19 -06:00
Gregory Nutt
66df3afd46
mv ramlog.h and syslog.h to new include/nuttx/syslog
2014-04-10 09:29:30 -06:00
Gregory Nutt
b3792fcd86
Many changes to reduce complaints from CppCheck. Several latent bugs fixes, but probably some new typos introduced
2014-02-10 18:08:49 -06:00
Gregory Nutt
b3745e36b7
Move ramdisk.h to include/nutt/fs/ramdisk.h
2013-12-10 09:42:58 -06:00
Gregory Nutt
b4144e21d6
Move include/nuttx/fb.h to include/nuttx/video/fb.h
2013-12-10 09:23:54 -06:00
Gregory Nutt
4aaee6fb3c
Clean up some naming: fd vs. fildes vs. filedes and filep vs filp
2013-09-28 16:50:07 -06:00
Gregory Nutt
56f9092a87
Fix all occurrences of "the the" in documentation and comments
2013-08-27 09:40:19 -06:00
Gregory Nutt
8ff1402958
.dSYM only needs to be in the same .gitignore files as .exe
2013-05-30 15:02:04 -06:00
Gregory Nutt
f0c36e422f
Upate .gitignore files. Add .dSYM. Make sure / is present where needed. Add some missing .gitignore files
2013-05-30 14:45:31 -06:00
Gregory Nutt
efbe6f2b07
Add configuration and example to test MTD partitions
2013-04-30 15:54:02 -06:00
Gregory Nutt
8c4e03bba9
Various Kconfig files still have references to CONFIG_ variables. Some in harmless comments, some in config definionts which is not harmless. All removed
2013-04-25 15:52:00 -06:00
Gregory Nutt
3aa94411be
Remove up_assert_code
2013-04-25 15:19:59 -06:00
Gregory Nutt
91e6580aff
Adding missing registration of /dev/zero; Condition registration of /dev/null. From Ken Petit
2013-04-24 07:17:49 -06:00
Gregory Nutt
65fec0683a
_exit() should not call atexit() or on_exit() functions; Rename task_deletecurrent() to task_exit()
2013-04-18 16:15:20 -06:00
Gregory Nutt
1a07e950ea
Move LPC17xx IOCON register definitions from lpc17_gpio.h to lpc17_iocon.h; fix a few more .gitignore files
2013-04-04 18:12:44 -06:00
Gregory Nutt
1694955188
Clone svn:ignore directory atributed to .gitignore files
2013-04-04 14:27:29 -06:00
patacongo
e29d6479c9
Corrections needed after further test of stack-based task arguments
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5771 42af7a65-404d-4744-a932-0658087f49c3
2013-03-21 23:37:11 +00:00
patacongo
c496b7aad9
Copy siginfo_t to step before calling a user-space signal handler
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5769 42af7a65-404d-4744-a932-0658087f49c3
2013-03-21 20:02:14 +00:00
patacongo
a7b37da2d9
Add a up_stack_frame() interface to allocate a frame of data on a task's stack.
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5768 42af7a65-404d-4744-a932-0658087f49c3
2013-03-21 17:35:08 +00:00
patacongo
c86f502f2e
In the kernel build, allocate the stacks for kernel threads from the kernel heap so that they are protected from medddling by the applications
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5766 42af7a65-404d-4744-a932-0658087f49c3
2013-03-20 20:27:08 +00:00
patacongo
020cc2248e
Change prototypes of up_create_stack and up_release_stack to include a task type parameter
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5765 42af7a65-404d-4744-a932-0658087f49c3
2013-03-20 18:22:21 +00:00
patacongo
3dc5b1fa9f
Create sched_ufree and sched_kfree from sched_free; Use user-accessible heap to allocae stacks
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5725 42af7a65-404d-4744-a932-0658087f49c3
2013-03-10 15:32:33 +00:00
patacongo
e47c64204c
More changes for a kernel-mode allocator (more to be done)
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5724 42af7a65-404d-4744-a932-0658087f49c3
2013-03-09 21:12:20 +00:00
patacongo
9207732f18
Add debug output when memory allocations fail
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5686 42af7a65-404d-4744-a932-0658087f49c3
2013-02-28 15:31:58 +00:00
patacongo
bc69dc2c5a
Rename _TCB to struct tcb_s
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5610 42af7a65-404d-4744-a932-0658087f49c3
2013-02-04 18:46:28 +00:00
patacongo
b1aa82fcca
Add syslog.h; rename lib_rawprintf() to syslog()
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5578 42af7a65-404d-4744-a932-0658087f49c3
2013-01-28 21:55:16 +00:00
patacongo
71a8d7d104
Fix poll/select issue reported by Qiang
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5559 42af7a65-404d-4744-a932-0658087f49c3
2013-01-24 19:19:38 +00:00
patacongo
b94547ff97
configs/sim/nxwm now uses kconfig-frontends
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5449 42af7a65-404d-4744-a932-0658087f49c3
2012-12-21 21:30:33 +00:00
patacongo
cd20adb63d
Patches from Petteri Aimonen + stdbool and rand() changes for Freddie Chopin
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5415 42af7a65-404d-4744-a932-0658087f49c3
2012-12-07 16:00:56 +00:00
patacongo
00d2b645e6
Missing comma in EVERY DELFILE/DELDIR macro call in every Makefile
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5373 42af7a65-404d-4744-a932-0658087f49c3
2012-11-20 15:47:41 +00:00
patacongo
756e84977b
Most of the changes needed to support Windows native clean; distclean is has a problem
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5367 42af7a65-404d-4744-a932-0658087f49c3
2012-11-17 18:54:53 +00:00
patacongo
7163ac74fa
Move some (hopefully) un-necessary quotes in Makefiles for Mike
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5356 42af7a65-404d-4744-a932-0658087f49c3
2012-11-15 17:43:29 +00:00
patacongo
fbdc3246fd
A few more build fixes
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5340 42af7a65-404d-4744-a932-0658087f49c3
2012-11-12 01:54:54 +00:00
patacongo
bf8f1e986c
Correct some issues with last check-in; ez80 still does not build
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5339 42af7a65-404d-4744-a932-0658087f49c3
2012-11-11 23:44:31 +00:00
patacongo
fac751de6b
Partial change: Removing bash ARCHIVE loop
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5335 42af7a65-404d-4744-a932-0658087f49c3
2012-11-11 15:42:12 +00:00
patacongo
9b822f3086
arch/../src/Makefiles now use only libraries in lib/
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5333 42af7a65-404d-4744-a932-0658087f49c3
2012-11-11 13:52:31 +00:00
patacongo
362302e003
Create an STM32F4Discovery configuration for testing uClibc++
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5300 42af7a65-404d-4744-a932-0658087f49c3
2012-11-02 23:22:48 +00:00
patacongo
64741f2bcc
Add libsupc++ to sim/cxxtest configuration
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5296 42af7a65-404d-4744-a932-0658087f49c3
2012-11-02 00:22:52 +00:00
patacongo
ecca51d044
ARM and ARMv7-M ELF support; STM32F4Discovery ELF loader test configuration
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5264 42af7a65-404d-4744-a932-0658087f49c3
2012-10-26 19:53:20 +00:00
patacongo
0074eca835
Rename elf.h to elf32.h; Additional ELF loader changes
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5263 42af7a65-404d-4744-a932-0658087f49c3
2012-10-26 02:42:39 +00:00
patacongo
6eca82d4a6
More ELF loader changes
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5261 42af7a65-404d-4744-a932-0658087f49c3
2012-10-25 22:10:56 +00:00
patacongo
a34472f4a8
Add x86 ELF support
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5258 42af7a65-404d-4744-a932-0658087f49c3
2012-10-25 16:37:31 +00:00
patacongo
a7490ae029
Change all occurrences of CONFIG_EXAMPLE_ to CONFIG_EXAMPLES_ for consistency; fleshed out a few more Kconfig files
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5211 42af7a65-404d-4744-a932-0658087f49c3
2012-10-04 17:36:07 +00:00
patacongo
5acf2fe3e1
Resync new repository with old repo r5166
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5154 42af7a65-404d-4744-a932-0658087f49c3
2012-09-17 18:35:37 +00:00
patacongo
36df84c843
Email address change in nuttx/
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5145 42af7a65-404d-4744-a932-0658087f49c3
2012-09-13 18:32:24 +00:00
patacongo
4f469e6316
Reconfigured Shenzhou to use JTAG. Misc Kconfig changes
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5118 42af7a65-404d-4744-a932-0658087f49c3
2012-09-09 15:43:18 +00:00
patacongo
40888af331
Move RAMLOG driver to drivers/syslog; Add ability to output debug information to any character device or file
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4996 42af7a65-404d-4744-a932-0658087f49c3
2012-08-02 00:42:46 +00:00
patacongo
faf4bad3f1
Change all values in all limits.h for all architectures to signed decimal; the hex values were not sign extending appropriate in most uses
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4911 42af7a65-404d-4744-a932-0658087f49c3
2012-07-05 23:45:57 +00:00
patacongo
5181131ee7
NxWM: Finishes touchscreen implementation; NuttX: Standardize touchscreen initialization interfaces for all boards
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4721 42af7a65-404d-4744-a932-0658087f49c3
2012-05-11 00:05:25 +00:00
patacongo
294ca35a9a
More NxWM touchscreen fixes
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4719 42af7a65-404d-4744-a932-0658087f49c3
2012-05-10 01:35:23 +00:00
patacongo
b7f6fe2249
Fix some warnings and fix some simulator builds
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4688 42af7a65-404d-4744-a932-0658087f49c3
2012-05-02 15:36:19 +00:00
patacongo
65609b13b3
more Kconfig stuff
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4626 42af7a65-404d-4744-a932-0658087f49c3
2012-04-17 21:53:05 +00:00
patacongo
8779fb2f5f
More Kconfig
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4625 42af7a65-404d-4744-a932-0658087f49c3
2012-04-17 21:23:10 +00:00
patacongo
09eb66c89d
Kconfig update
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4599 42af7a65-404d-4744-a932-0658087f49c3
2012-04-13 14:27:44 +00:00
patacongo
fbaeb32b0f
More configuration files
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4588 42af7a65-404d-4744-a932-0658087f49c3
2012-04-11 02:04:59 +00:00
patacongo
8948524fd3
Include libgcc.a inside of the group of recursively linked libraries in all Makefiles
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4573 42af7a65-404d-4744-a932-0658087f49c3
2012-04-08 13:03:26 +00:00
patacongo
7221f3b1ed
Updated Kconfig files from Lzyy
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4569 42af7a65-404d-4744-a932-0658087f49c3
2012-04-07 14:50:57 +00:00
patacongo
6708183e27
Beginning of a NuttX configuration tool
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4560 42af7a65-404d-4744-a932-0658087f49c3
2012-04-05 17:44:04 +00:00
patacongo
7667d2a64e
LPC17xx DAC fixes
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4521 42af7a65-404d-4744-a932-0658087f49c3
2012-03-25 16:22:07 +00:00
patacongo
bab4616a8d
Move file-system header files to include/nuttx/fs
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4499 42af7a65-404d-4744-a932-0658087f49c3
2012-03-21 18:01:07 +00:00
patacongo
df43e1b890
Move all non-standard, NuttX header files into include/nuttx/net
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4450 42af7a65-404d-4744-a932-0658087f49c3
2012-03-03 23:18:34 +00:00
patacongo
c4dfdea4b3
Add interface to enabled/disable debug output
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4386 42af7a65-404d-4744-a932-0658087f49c3
2012-02-12 23:54:26 +00:00
patacongo
d2e05ac96f
Fix a small RAM log bug (the RAM log still does not work)
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4385 42af7a65-404d-4744-a932-0658087f49c3
2012-02-12 20:27:49 +00:00
patacongo
8595411e4a
Add logic to re-direct debug output to a sysloggin device
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4381 42af7a65-404d-4744-a932-0658087f49c3
2012-02-11 14:20:40 +00:00
patacongo
f96a5812a5
Remove a couple of warnings
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4377 42af7a65-404d-4744-a932-0658087f49c3
2012-02-08 17:17:18 +00:00
patacongo
799d40d32d
Some changes to the Telnet/FTPD configuration
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4376 42af7a65-404d-4744-a932-0658087f49c3
2012-02-08 00:05:36 +00:00
patacongo
50138c565e
Candidate fix for the libboard.a dependency problem (from Mike Smith)
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4346 42af7a65-404d-4744-a932-0658087f49c3
2012-01-29 20:07:16 +00:00
patacongo
e5e53db35d
Create directory structures to support power-related devices
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4321 42af7a65-404d-4744-a932-0658087f49c3
2012-01-22 16:42:49 +00:00
patacongo
4b1f861e06
Add support for building 32-bit simulation on a 64-bit target
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4307 42af7a65-404d-4744-a932-0658087f49c3
2012-01-17 17:42:31 +00:00
patacongo
7513483666
Fix error in sim build
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4127 42af7a65-404d-4744-a932-0658087f49c3
2011-11-28 22:48:31 +00:00
patacongo
24fe8343b4
Fix sim/nsh2 build
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4039 42af7a65-404d-4744-a932-0658087f49c3
2011-10-11 14:34:18 +00:00
patacongo
4f1e0c062d
Add sim/nsh2 configuration
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4026 42af7a65-404d-4744-a932-0658087f49c3
2011-10-06 16:31:13 +00:00
patacongo
97f7f3d630
Don't run X11 event loop on a pthread; X11 is not thread-safe.
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4001 42af7a65-404d-4744-a932-0658087f49c3
2011-09-29 21:13:49 +00:00
patacongo
398d60ede7
Use XGrapButton, not XGrabPointer
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4000 42af7a65-404d-4744-a932-0658087f49c3
2011-09-29 20:54:23 +00:00
patacongo
6fe938c5b2
Add sim touchscreen bugfixes
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3999 42af7a65-404d-4744-a932-0658087f49c3
2011-09-29 18:26:56 +00:00
patacongo
338fc4ddf8
Add debug instrumentation
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3998 42af7a65-404d-4744-a932-0658087f49c3
2011-09-29 17:49:36 +00:00
patacongo
e89f6654cb
Add a simple touchscreen test
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3995 42af7a65-404d-4744-a932-0658087f49c3
2011-09-29 16:25:21 +00:00
patacongo
ebd783e326
Simulated touchscreen debug fixes
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3994 42af7a65-404d-4744-a932-0658087f49c3
2011-09-28 23:39:57 +00:00
patacongo
fd85adf183
Fixes to x11 event loop
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3993 42af7a65-404d-4744-a932-0658087f49c3
2011-09-28 22:28:21 +00:00
patacongo
ea6d356e9c
Remove some warnings
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3992 42af7a65-404d-4744-a932-0658087f49c3
2011-09-28 19:11:48 +00:00
patacongo
8a07562c87
Change X11 event loop initialization
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3991 42af7a65-404d-4744-a932-0658087f49c3
2011-09-28 19:09:38 +00:00
patacongo
07acb131f0
Fix NXFFS compilation error
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3990 42af7a65-404d-4744-a932-0658087f49c3
2011-09-28 18:24:00 +00:00
patacongo
d9d6990d9f
Add a simulated touchscreen driver
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3989 42af7a65-404d-4744-a932-0658087f49c3
2011-09-28 17:41:58 +00:00
patacongo
01a398eeea
Fix sim build under Ubuntu 9.09
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3988 42af7a65-404d-4744-a932-0658087f49c3
2011-09-28 14:59:54 +00:00
patacongo
99f4ac37a0
Use only __CYGWIN__ to identify Cygwin
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3987 42af7a65-404d-4744-a932-0658087f49c3
2011-09-28 14:05:46 +00:00
patacongo
eac7114381
Add a basic power management framework
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3936 42af7a65-404d-4744-a932-0658087f49c3
2011-09-04 19:24:27 +00:00
patacongo
d7a03dabb0
Completes test of line/trapezoid drawing routines
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3842 42af7a65-404d-4744-a932-0658087f49c3
2011-08-04 01:25:58 +00:00
patacongo
ab948d453e
Export make target now produces a .zip file by default
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3778 42af7a65-404d-4744-a932-0658087f49c3
2011-07-12 23:54:13 +00:00
patacongo
625d8a33bd
Add an 'export' target to the NuttX top-level Makefile
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3771 42af7a65-404d-4744-a932-0658087f49c3
2011-07-11 22:52:51 +00:00
patacongo
3a29986d80
Add termios header files; add files missed in last commit
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3739 42af7a65-404d-4744-a932-0658087f49c3
2011-07-01 22:23:54 +00:00
patacongo
9db7adaa53
Add support for accessing printf, sprintf, puts, etc. strings that do not lie in the MCU data space
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3738 42af7a65-404d-4744-a932-0658087f49c3
2011-07-01 19:08:04 +00:00